Solved

executing Sql server strored proc at a given time

Posted on 2008-10-15
7
147 Views
Last Modified: 2010-03-19
Hello,
How can i execute a Sql server 2005 stored procedure called sp11 every wednesday @ 9h45 AM.

thanks a lot
0
Comment
Question by:Nyana22
7 Comments
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22722143
Schedule it as a job through SQL Server agent in Management studio.
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22722158
to expand upon that: SQL Server Agent will appear when you expand the servername in the object explorer.  Expand SQL Server Agent, right click Jobs, new job.
0
 

Author Comment

by:Nyana22
ID: 22722170
thanks, but how?
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 40 total points
ID: 22722189
0
 

Author Comment

by:Nyana22
ID: 22722242
i didnt find it, is it because i have the express version??
0
 
LVL 2

Assisted Solution

by:tree33
tree33 earned 60 total points
ID: 22722272
You can not schedule Jobs in the Express edition using a SQL Agent.
Another way whould be to create a osql script and the schedule this using the Windows Task Scheduler.
http://msdn.microsoft.com/en-us/library/aa213090(SQL.80).aspx
0
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 200 total points
ID: 22722280
Yes.  SQL Server express does not have SQL Server agent.

There are a lot of things you can do and articles to read:

http://www.sqlteam.com/article/scheduling-jobs-in-sql-server-express

The other thing you can do is just create a Windows Scheduler job to execute it with sqlcmd.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

839 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