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
 Create Trigger (Urgent)

Author  Topic 

p_kr
Starting Member

1 Post

Posted - 2009-02-28 : 15:59:38
I need a update trigger in one schema so that it can keep monitoring database table of other schema , both schema in residing on same machine , is it possible in SQL server 2000 ?
if yes than could some one help me with syntax to be used to create such update trigger
for example if i have schema abc and pqr than i need trigger residing in abc and it keep monitoring lets say table customer_detail in pqr if any change done in customer_detail should reflect tables present in abc..

nr
SQLTeam MVY

12543 Posts

Posted - 2009-03-01 : 21:03:18
A trigger is fired by changes to the data on it's parent table - so your triggers would be on the tables in schema pqr and would update the tables in abc.

Then it becomes a permission problem.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -