SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 updating the remote database using trigger
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

3 Posts

Posted - 06/23/2013 :  11:29:50  Show Profile  Reply with Quote
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.

In (Som, Ni, Yak)

17684 Posts

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

Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000