Home > Archive > MS SQL Server > March 2006 > scheduling a query









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author scheduling a query
Simone

2006-03-08, 8:23 pm

I need to scheduling a query to update some records.
I have to use a script in windows task manager or there is another way?

Many Thanks



Jeffrey K. Ericson

2006-03-08, 8:23 pm

The SQL Agent is a wonderful wat to schedule a query. Create a job and out
your query in a step.

"Simone" wrote:

> I need to scheduling a query to update some records.
> I have to use a script in windows task manager or there is another way?
>
> Many Thanks
>
>
>
>

Jens

2006-03-08, 8:23 pm

If you are using an edition of SQL Server which has an enterprise
manager and therefor a UI for SQL Server Agent, you can just create a
job with your query. Add a new job, add a new step (Transact SQL
Execution), paste your statement in there and add a schedule for it and
voil=E1, you=B4re done. iof you do=B4n=B4t have a GUI, you can use the
goold old fashioned AT to do your jobs. Just schedule your job by the
Windows Scheduler or AT, suing OSQL to run the query: OSQL -SServername
-UUsername -PPassword -Q"Here is my query".

HTH, jens Suessmeyer.

SQL

2006-03-08, 8:23 pm

you can create a job and schedule that
Jobs are under management-->Sql Server agent-->Jobs
make it a one step job paste your query or proc call in the step
command window and schedule the job


http://sqlservercode.blogspot.com/

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com