Click here to Skip to main content
16,009,112 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,
I have an stored procedure to execute for every 24 hours, Can any one help me to create a job in sql, if possible please reply with a brief statment which includes the sql code to my question

Thanks in advance
Posted
Comments
[no name] 3-Sep-13 9:55am    
http://msdn.microsoft.com/en-us/library/ms190268(v=SQL.105).aspx

We could not possibly know your database setup or your stored procedure or anything else.

1 solution

If you have an edition higher than Express, you can use the SQL Server Agent feature, to schedule jobs. See here: http://technet.microsoft.com/en-us/library/ms191439.aspx[^].
Other related topics: http://msdn.microsoft.com/en-us/library/ms189880.aspx[^]
If you have Express, your simplest option is to use Windows task scheduler[^] and use the sqlcmd[^] utility to run your stored procedure.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900