Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Trigger question ?

Status
Not open for further replies.

pvmurphy

Programmer
Jul 29, 2003
50
US
On an Insert trigger, what must I do to insure that the Insert completes, even though my code to update tables on a linked server may fail. Would the after trigger be applicable here?

Thanks,

Jim
 
If I understand you correctly then yes, you can use an AFTER INSERT trigger to update tables on a linked server in this manner i.e. the AFTER trigger will only fire if the the original INSERT statement completes successfully.

cheers

Nathan

Nathan
[yinyang]
----------------------------------------
Want to get a good response to your question? Read this FAQ! -> faq183-874
----------------------------------------
 
If the trigger fires after the insert, it there is then a problem, I don't want the insert to get rolled back.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top