I want use insert into sql query sqlserver2008
like this
insert into server2 table select * from server1 table
but is not use
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vipan SharmaRank #1,589 · 999 reputationPosted May 20, 2016, 8:41 PM EDT
Munesh SharmaRank #174 · 13.9K reputationPosted May 22, 2016, 4:42 PM EDT
http://okayguru.blogspot.co.uk/2012/03/copy-one-database-to-another-database.html
There are several ways to do this, below are two options:
Option 1 - Right click on the database you want to copy
Choose 'Tasks' > 'Generate scripts'
'Select specific database objects'
Check 'Tables'
Mark 'Save to new query window'
Click 'Advanced'
Set 'Types of data to script' to 'Schema and data'
Next, Next
You can now run the generated query on the new database.
Option 2
Right click on the database you want to copy
'Tasks' > 'Export Data'
Next, Next
Choose the database to copy the tables to
Mark 'Copy data from one or more tables or views'
Choose the tables you want to copy
Finish
Nikhil SanganiRank #2,102 · 681 reputationPosted May 20, 2016, 3:34 AM EDT
Bharathi RajaRank #1,778 · 842 reputationPosted Jan 31, 2018, 12:15 AM EST