rpkhare
asked on
Passing parameter to a Trigger
Can I pass parameters to a Trigger?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm agree with Angelll on can't pass parameter directlyto triggers bcoz you do not call a trigger.
But how about calling a stored procedure inside a trigger and availing the required parameter???
Inside trigger you call a sp like this..
call uNeedParameter(OUT param1);
or
call uNeedParameter(@param1);
Later you can use ' param1' in the body of trigger?
Does it make sense?
But how about calling a stored procedure inside a trigger and availing the required parameter???
Inside trigger you call a sp like this..
call uNeedParameter(OUT param1);
or
call uNeedParameter(@param1);
Later you can use ' param1' in the body of trigger?
Does it make sense?
ASKER
Will it be an overhead or not? What is the advantage of calling a Stored Procedure from a trigger?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER