Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

job to run daily excluding weekends?

Status
Not open for further replies.

NuJoizey

MIS
Aug 16, 2006
450
US
I have a stored procudure that I want to run every day except for Saturdays and Sundays. It sends out reminder emails based on the results of a query. In the job scheduler for SQL Server2008, however there seems to be no options to configure this beyond just daily.

So then, am I correct in then assuming that the stored procedure will always have to run daily, and that I have to account for my non-weekend requirement by testing for Saturday or Sunday weekday in the script, and then not executing the sendmail portion of the script if it is a weekend day?
 
duh, silly me. schedule it weekly, not daily, and the optoins are available.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top