I have a series of stored procedures (27 in total) that I would like to execute sequentially in an automated way. I have created the required 27 job steps in SQL Server Agent (each step executing a stored procedure).
However, some of these procedures require a parameter to fill out called LastEndOFMonthDate
where you fill out the date (ie 03/24/2018) in the parameter. This parameter would have the same value (date) for each job step. I was wondering how I could automate the parameter aspect, so that I would not have to manually enter the same parameter value for each stored procedure/job step that required it?
Here is an example of a stored procedure I am executing as one of the 27 job steps:
exec [dbo].[sp_05_UpdateDataMart_26_Create_JMIDataMart_With_Demo_and_Total] @LastEndOfMonthDate
If anyone could provide an easy way to automate the parameter aspect of this, I would greatly appreciate it.