Solved

How to schedule a stored procedure

Posted on 2016-09-20
3
51 Views
Last Modified: 2016-09-20
i don't see a way to schedule a stored procedure in SQL server 2008. I am looking for the job wizard but I keep getting the new job window. when i schedule a step, it does not give me the option to choose a stored procedure.
0
Comment
Question by:maximus1974
3 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 41807188
Do you see SQL Agent in Management Studio? This is where you will be able to schedule tasks
0
 
LVL 69

Expert Comment

by:Scott Pletcher
ID: 41807288
You schedule an entire job, not just a step.

Right-click on the Job, select "Properties", click on the "Schedules" tab, and create the schedule(s) you need from there.
0
 
LVL 42

Accepted Solution

by:
zephyr_hex (Megan) earned 500 total points
ID: 41807300
You won't choose a stored procedure.  You'll execute a command:

agent
Create a new job, add a new step to the job and give it a name, and enter in your command that runs the stored procedure.  Make sure you select the database, and the proxy that should run the job in the Run As drop down.  Then go through the other settings (Schedule, etc) and configure the job.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DTS Connection Failed 7 66
script to send html report 3 32
Count with a subquery showing details 10 41
sql server computed columns 11 29
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

806 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question