Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

Obtain Job invoker for a SSIS job scheduled in SQL Server Agent

$
0
0

Hello,

I was required to tell the job runner of a particular SSIS job scheduled in SQL Server Agent (in SQL Server Management Studio 2008 R2). I noticed that after running the job, a record can be found in msdb.dbo.sysjobhistory in the [message] columm saying that the job is invoked by 'Domain\User'. Is there anyway I can acquire and upload that information into an audit table by adding some additional script into the job? I heard about using token to get job_ID, but what about the actual user name who runs the job?

Thanks


Viewing all articles
Browse latest Browse all 1519


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>