Click here to Skip to main content
15,923,087 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have two databases – first one is on a remote server and second one is local. Servers are different versions - the local one needs to be upgraded to match the remote one.

How can I copy all the tables from a remote database to the local one, without upgrading the latter? Is there maybe some piece of code to help with this?

Thanks
Posted

1 solution

Hi,

You can try to migrate your tables by creating scripts for tables in your remote db. To do that, right click the desired table and move to ‘Script table as -> Create to’.

After that, you’ll have to sort you scripts so the tables w/o dependencies on any other tables are firstly executed. And finally, go and run the scripts on your local database.

For data migration, I recommend using SQL Server Import/Export wizard.

Hope I helped.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900