waitfor time '23:00:00'; print 'Beginning scheduled job, please wait...'; -- some statements go here print 'Done.'; print ''; go 100The above "schedules" execution of the batch for 11 PM every day for next 100 days or until someone closes the query window or restarts the service :)
No one has followed this question yet.