Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 updating the remote database using trigger

Author  Topic 

aditi11
Starting Member

3 Posts

Posted - 2013-06-23 : 11:29:50
hi All,
i have two sql databases T1 and T2. i want to write a trigger using where any changes happening in T1 database will automatically update the t2 database. i have a schema DTA1 in T1 which has a table called empdetails. T2 database has the similar table structure. so any changes happening in empdetails(table)in T1 database should automatically update the empdetails table in T@ database.
T1- database1
DTA1- schema name
empdetails- table name

T2 - database2
DTA2- schema of T2
empdetails- table of T2

Please please help . i have tried writing many triggers but nothing worked perfectly. please suggest a solution.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2013-06-23 : 22:02:23
duplicate of http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=186347


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -