Home All Groups Group Topic Archive Search About

Reg:Passing Parameter to Trigger

Author
23 Mar 2006 11:12 AM
SivaprakashShanmugam
Hello

Is there any possibilities to pass parameters to Triggers if so How?.

Siva.

Author
23 Mar 2006 11:25 AM
Uri Dimant
No, what is the purpose?

Show quote
"SivaprakashShanmugam" <SivaprakashShanmu***@discussions.microsoft.com>
wrote in message news:52258289-70A2-45EE-8752-44A9E58A2F8D@microsoft.com...
> Hello
>
> Is there any possibilities to pass parameters to Triggers if so How?.
>
> Siva.
Author
23 Mar 2006 11:26 AM
Mikael
I dont think it is possible.

Triggers can use 2 system tables inserted and deleted to see what rows where
affected on the table.


--
Best regards

Mikael


Show quote
"SivaprakashShanmugam" wrote:

> Hello
>
> Is there any possibilities to pass parameters to Triggers if so How?.
>
> Siva.
Author
23 Mar 2006 12:15 PM
ML
You cannot send data as parameters to triggers, you can, however, create a
global temporary table outside the trigger, insert the data into that table,
then retrieve the data in the trigger as appropriate.

But most importatntly (as the other poster have already asked) - why?


ML

---
http://milambda.blogspot.com/

AddThis Social Bookmark Button