Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,
Suppose I have database abc and heaving multiple tables in it. I have created another database in another server xyz heaving the same tables as in abc. I want to transfer data from abc to xyz in each table and keep in mind that Ids from tables of xyz will not mismatch as there is lots of referencing in the database.
For Ex. CustomerID and InvoiceID one customer have multiple Invoices.I want to save Invoices with customerID customer ID will be different in xyz as in abc.

HAve any suggestions how I will do this .. ??
Posted
Comments
Tamil Selvan K 3-Jul-12 9:59am    
what do you want to do... to transfer complete database data or for particular tables only...

1 solution

Hi,

I have one suggestion for you. just drop the XYZ.
1 Go to ABC select the database.right click select task-> generate script
2 select ABC DB click on next
3 set the option true whatever option you want,you can set all option true if you don't understand.
4 select table/SP or what ever you want.
5 select name of table/sp
6. click on finish .

It will generate the SQL script,just copy and past scrip on other server replace the using and run the script

hope this will help you
 
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