Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

schedule

Posted on 2008-10-22
1
Medium Priority
?
390 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

705 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