SQL Server Agent Job Variables

Is there a system variable available to return the calling JobStep Name/Number that can be used as a parameter while executing a batch script in a CmdExec type step?

This would be similar to %JOBNAME% in TNG Workload or %~n0 in shell scripting.

[253 byte] By [RobertDarwin] at [2008-1-12]
# 1
The job step token passing functionality should continue to work. Check out http://www.sqldev.net/sqlagent/SQLAgentStepTokens.htm
BillRamos at 2007-9-8 > top of Msdn Tech,SQL Server,SQL Server Tools General...

SQL Server

Site Classified