Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
How To Copy Table From Another Database In SQL Server 2008
WhatsApp
Mohd Arif
Jul 29
2016
707
0
0
-- 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
Up Next
How To Copy Table From Another Database In SQL Server 2008