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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 how to fire trigger across databases

Author  Topic 

DURGESH
Posting Yak Master

105 Posts

Posted - 2008-07-07 : 03:39:27
hi all,

how to fire trigger across databases

can anybody help me to solve this issue

regards
durgesh

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-07 : 03:46:42
can you elaborate more on your scenario?
Go to Top of Page

DURGESH
Posting Yak Master

105 Posts

Posted - 2008-07-07 : 04:44:58
i have two databases as db1 and db2
now, i am inserting a record in one of the table of db1 and the same table is there in db2. so, i want to insert the same record in a table of db2
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-07 : 04:53:31
use an insert trigger on db1 and then insert from inserted table onto table in db2. it will be a normal trigger with just specifying the correct db for second table, like:-

insert into db2.table
select * from inserted
Go to Top of Page
   

- Advertisement -