Sql | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Sql

How do u duplicate a table from one database into another database, using the “select *into”

24th Feb 2019, 10:07 AM
Onana
1 Answer
0
Condition: Both tables contain the same data(columns + datatype) : for my example i am using the 'dbo' schema. Database to insert: DatabaseInsert Database to copy: DatabaseCopy Table in both databases: YourTableName INSERT INTO DatabaseInsert.dbo.YourTableName SELECT * FROM DatabaseCopy.dbo.YourTableName
25th Feb 2019, 6:18 PM
Mitterbu