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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about triggers

Status
Not open for further replies.

pjw001

Technical User
Aug 12, 2002
297
GB
I am having a problem with a trigger and would like some advice as to whether I have an error in the trigger or have misunderstood how they work.

The trigger is on table A.

The application first deletes a row from table B and then deletes a row from table A. The deletes are within a single SQL transaction.

When the trigger is processed should the row deleted from table B still be available to the trigger?

From what I can tell from the behaviour of the trigger it would seem that the row deleted from table B is not available, but it could be that I have an error in the trigger.

Many thanks for any help or advice offered.
 
No. The row from table b should not be available.

If you show the code for the trigger and the exact error message, we may be able to help.

-George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Thank you George.

If the row is not available there is probably not much that can be done with the trigger.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top