Just a quick question:
Say I put an insert trigger on a table in my database.
If data is inserted into that table through a login/user "foobar".
Does the trigger execute with the same access rights / permissions as "foobar"?
Many thanks.
Just a quick question:
Say I put an insert trigger on a table in my database.
If data is inserted into that table through a login/user "foobar".
Does the trigger execute with the same access rights / permissions as "foobar"?
Many thanks.
by default yes, but you can change that using
on the trigger definition
http://msdn.microsoft.com/en-us/library/ms188354(v=sql.100).aspx
Yes.
You can control this behaviour with the
clause of the create statement, as explained here.
The default for triggers is
where we find