here are the steps
- in SQL management studio, right click on "SQL Server Agent" under the SQL server which you are connected to.
- Select New Job.
- Enter the job name and then click on steps
- Click on "New" which should be right at the bottom of the screen.
- Enter step name.
- Type: keep it selected as Transact SQL
- Enter : EXECUTE dbo.MYProcedure N'2016-02-25';
Now save it and it should be ready for running manually.
If you do want to automate it then open the job by going into the job monitor under SQL Server Agent in SQL management studio and then click on schedule and provide when and how often you would like your job to run.
If you automating the date parameter then add this as your Transact SQL statement:
DECLARE @DATE DATETIME
--Trim out the time so the date is set to 2016/02/25
--and time changes to 00:00 get date will get todays
--date or the run date
SET @DATE = DATEADD(DD,0,DATEDIFF(DD,0,GETDATE()))
EXECUTE dbo.MYProcedure @DATE
Happy coding!!!