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

Accessing Insert And Delete tables outside of a Trigger

Status
Not open for further replies.

webuser

MIS
Joined
Jun 1, 2001
Messages
202
Location
US
I need to be able to run a stored procedure from a trigger. I would like the Stored Procedure to access the Inserted And Deleted Tables. Is there any way to do this, other that Inserting all the records into a temporary table...which works, but in my opinion is not so elegant. Can you maybe pass the tables as a parameter of some sort?

Any help would be appreciated.
Thanks in advance...
 
Well u can pass a cursor instead of a temp table, but u will not be able to access the inserted and deleted tables outside this trigger.

So go for optimised cursor properties and pass the cursor.
 
From what I understand, there is no way to passa Cursor as an Input Parameter to a Stored Procedure...Is this what you meant?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top