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.
Author |
Topic |
DURGESH
Posting Yak Master
105 Posts |
Posted - 2008-07-07 : 03:39:27
|
hi all,how to fire trigger across databasescan anybody help me to solve this issueregardsdurgesh |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-07-07 : 03:46:42
|
can you elaborate more on your scenario? |
 |
|
DURGESH
Posting Yak Master
105 Posts |
Posted - 2008-07-07 : 04:44:58
|
i have two databases as db1 and db2now, 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 |
 |
|
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.tableselect * from inserted |
 |
|
|
|
|