Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Get the current process for table update (stored proc/query) and log to audit column using trigger

$
0
0
Hello Guys,I was trying to see if it's possible to get the current process for a table update(stored proc/query) and log to an audit column using an update trigger. How is it possible. (QUOTENAME(OBJECT_SCHEMA_NAME(@@PROCID))+'.'+QUOTENAME(OBJECT_NAME(@@PROCID)) - only gives the update trigger nameIf any one can provide the script for the trigger, that would be great.Many thanks!

Viewing all articles
Browse latest Browse all 3145

Latest Images

Trending Articles



Latest Images