Click here to Skip to main content
12,354,122 members (69,963 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: SQL-Server Scheduler , +
Hello,

I have a stored procedure that needs to be run automatically at every 24 hrs in sql server 2008.I am not sure but I think I have to create Job for that.I know nothing about it.

Can anybody help me?

Thanks,

Dhaval
Posted 24-Jun-12 2:45am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Dhaval,

To automate the proc, you do need to create a job and then schedule it..
check this video link[^].
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Yes, you can do it using SQL Server Agent.

In SQL Server Agent, there is a Jobs section, where one can create a new job and see a list of steps that is needed to create it.
During creation, one can specify the step to run a stored procedure(like: exec MyStoredProcedure).

Refer:
MS Technet: SQL Server Agent[^]
MSDN: Schedule a Job[^]
  Permalink  
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 24 Jun 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100