TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How To Copy Table From Another Database In SQL Server 2008
Mohd Arif
Jul 29
2016
Code
684
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
-- Create Empty Table from another Database --
SELECT
*
INTO
NewTableName
FROM
DatabaseName.
Schema
.OldTableName
where
1=2
Note:-
Replace
schema
from
dbo.
-- Create Empty Table from existing Table --
Select
*
into
NewTableName
from
OldTableName
where
1=2
Copy Table
Database
SQL Server 2008