Solved

schedule

Posted on 2008-10-22
1
384 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 125 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Addition to SQL for dynamic fields 6 37
Can > be used for a Text field 6 39
optimize stored procedure 6 24
Increment column based of a FK 8 20
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

776 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