Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two databases source and destination which have the same schema
i want to copy data from source to destination
do you have any script that iterates through all tables in source and copies them to similar tables in destination
i have Foreign keys iam thinkin that i must disable all constraints before moving data and then enabling them a gain am i right ?
Posted
Comments
oula alsheikh 14-Dec-14 9:24am    
i am interested in transferring the data from one database to
another that has the same schema so i am not working on transferring the schema
any one has a stored procedure ?

You have some options ready-made for you:
1. Database replication. This is a feature of SQL since 2005 - http://msdn.microsoft.com/en-us/library/ms151198.aspx[^]
2. Sync Framework. This is a more general purpose syncronization framework but can be used for SQL too. http://msdn.microsoft.com/en-us/library/bb902853(v=sql.110).aspx[^]
 
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