TheBugSlayer
Programmer
I have an audit FOR INSERT trigger on a client table. It saves information pertaining to the newly created client and which user created it in the audit table. Among the information recorded is the host name and the IP address, which is obtained from the DMV sys.dm_exec_connections. However, users must have VIEW SERVER STATE permissions to use the said view. I have granted the proper permission to two application logins already. It can be a little tedious to grant the same permission repeatedlly. My question is, is it possible to execute my trigger under the security context of another principal, as is possible with DDL triggers, SPs, queues and functions?
Thanks for your advice.
MCP SQL Server 2000, MCTS SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)
Thanks for your advice.
MCP SQL Server 2000, MCTS SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)