Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 updating table?

Author  Topic 

corgiii
Starting Member

4 Posts

Posted - 2010-02-16 : 08:10:20
im using sql 2005, how do i exec a stored procedure every 12 hours?

Kristen
Test

22859 Posts

Posted - 2010-02-16 : 08:11:45
Set up a Job, with a Schedule, in SQL Agent.

(If you are using SQL Express it does not come with SQL Agent )
Go to Top of Page

DaleTurley
Yak Posting Veteran

76 Posts

Posted - 2010-02-16 : 09:49:54
If you are using SQL Express, set up a scheduled task in Windows to run sqlcmd from a batch file every 12 hours.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-02-16 : 10:20:58
Less painful to just buy a copy of SQL Server I reckon
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2010-02-16 : 10:27:12
EXEC <dbname>.dbo.<Sproc Name>

[CTRL] + E

Every 12 hours...

Refills need authorization



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

corgiii
Starting Member

4 Posts

Posted - 2010-02-16 : 10:29:36
does anyone know how to open sqlagent in sql 2005?
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-02-16 : 10:40:18
Its in SSMS - right down the bottom of the object tree in the left pane - it will be missing if you have SQL Express.
Go to Top of Page

corgiii
Starting Member

4 Posts

Posted - 2010-02-16 : 10:46:20
its not there, im using SQL express
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2010-02-16 : 11:04:18
Well like I said in my first post: "If you are using SQL Express it does not come with SQL Agent"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-16 : 12:05:36
see this it might be of help to you

http://weblogs.asp.net/alex_papadimoulis/archive/2005/11/10/Express-Agent-for-SQL-Server-Express_3A00_-Jobs_2C00_-Jobs_2C00_-Jobs_2C00_-and-Mail.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -