Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
How to update database Automatically through One Database to other
Example : I Have Two Type of Database A and Database B and i want to Copy All Record of Database A to Database B if Database A is Updated how it can be possible ?
Please Help Me. My Database is in SQL Server 2008
Posted
Comments
Corporal Agarn 4-Oct-13 7:39am    
Do you mean table or database?
AnkitMPatel 4-Oct-13 7:42am    
If some update in Database then Automatically Other Database will be updated

database,not table
Corporal Agarn 4-Oct-13 7:52am    
Are the databases mirrored?
AnkitMPatel 4-Oct-13 7:57am    
Yes
Corporal Agarn 4-Oct-13 7:59am    
If the database is mirrored it should already update.
http://technet.microsoft.com/en-us/library/ms189852(v=sql.100).aspx

1 solution

You can put a trigger on your tables (in A) and executed appropriate SQL.

SEE: http://technet.microsoft.com/en-us/library/ms189799.aspx[^]

Be sure to read not only the 'how to' but also the restrictions.
 
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