Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

schedule

Posted on 2008-10-22
1
Medium Priority
?
394 Views
Last Modified: 2013-11-05
Is there any schedule job (i.e. execute some some SQL statement on a specific time) on SQL Server 2008 Express ?
0
Comment
Question by:andrewyu
1 Comment
 
LVL 51

Accepted Solution

by:
Mark Wills earned 375 total points
ID: 22783501
Not the SQL agent is a service and not part of Express. But you can write your SQL code and use the command line routine OSQL to run up your sql statements. Those batch jobs can be scheduled using Windows task scheduler...

Check the osql command line in Books On Line : http://msdn.microsoft.com/en-us/library/ms162806.aspx

There is also the sqlcmd version which is meant to be the latest and greates, but found osql to be more like a "query window" on disk, meaning,  create your queries intereactively, then save it to disk as a script file then use OSQL to run that script file. Put that osql command line in a windows batch (or command) and then schedule the batch job...
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question