Re: MSDE Automatic script at each night

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



If it is MSDE(1.0 or 2000), yes, you can schedule SQL Server Agent to run
jobs, which executes, say, a stored procedure doing the updates you want. If
it is SQL Server Express, no, SQL Server Express does not support Sql Server
Agent.

With MSDE, since it does not have a UI tool (that is, Enterprise Manager),
it is difficult to schedule a job, unless you are very good at using SQL
Server built-in SPs. However, if you have Enterprise Manager, it is very
easy to schedule a job inside MSDE.

If the updating you want is not so complicated, you can also easily write
some VBScript code, using ADO to do the update and use Windows' Scheduled
Tasks" applet to schedule it to run routinely. It can also be used to
schedule osql.exe to execute *.sql script easily.


"Danny" <lane.dj@xxxxxxxxx> wrote in message
news:%23AcI$PITHHA.5108@xxxxxxxxxxxxxxxxxxxxxxx
Can you setup within MSDE a script to be run automatically at 12:01 each
night.... The script is very simple...
such as "UPDATE Item Set SaleType = 0 where SaleEndDate < getdate()" Right
now is run this script vi osql and a schedule batch job.

Is saw something about SQL Server Agent ...

Any help would be appreciated.

Dan




.



Relevant Pages

  • Re: ldb file and Exclusive Access question
    ... Excel to report it. ... schedulable SQL server package. ... first db fro the 1st report I wanted to schedule. ... >database, the probability of database corruption is significantly increased. ...
    (comp.databases.ms-access)
  • Re: scheduling a t-sql stored procedures name in table column without creating a job for each on
    ... You want to schedule or simply run/put them on a Q and they run? ... Again I would still connect to SQL Server however it is that you want to do it, get all the possible procs from your Control table. ... I want to write a stored procedure that will ... You also do not need to use a Script task to do ...
    (microsoft.public.sqlserver.dts)
  • Re: Scheduling DTS job
    ... Local System account has unrestricted access to the local box and cannot see ... The day schedule took just as long as overnight right? ... Would this take as long "SQL Server to SQL Server"? ... package involved data transferred from sybase to ...
    (microsoft.public.sqlserver.dts)
  • Re: Create EXCEL file by DTS and import it into table of other Database
    ... I will like to automate the import of data in SQL Server database ... transferring them to different locations? ... three basic options for controlling the schedule of execution: ... Program is launched by a SQL stored procedure that SQL Server ...
    (microsoft.public.sqlserver)
  • Re: scheduled jobs not running
    ... Make sure the schedule is enabled ... Make sure SQL Server Agent is running ... Check the logs (Agent and SQL Server) for errors. ... one week ago they all stopped running and they> don't run daily as scheduled at all. ...
    (microsoft.public.sqlserver.dts)