dbTalk Databases Forums  

Can I run a Script at scheduled time?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Can I run a Script at scheduled time? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
k_s
 
Posts: n/a

Default Can I run a Script at scheduled time? - 09-20-2005 , 04:40 AM






Hi all,
I have to run a DTS on a remote server, which copies data from one DB to
another on same server.
The problem is, the connection is poor and I've not been able to save the
DTS on that server. There is no tech guy who can do the work of saving DTS ,
for me.
I have created a script, which do the same work for me as the DTS, and run
it manually everyday on remote server using Query analyzer.
Ok, I can create a cmd and batch file of the script and run it, but how to
run it as a job so that I can schedule it?
thanks



Reply With Quote
  #2  
Old   
Jens
 
Posts: n/a

Default Re: Can I run a Script at scheduled time? - 09-20-2005 , 05:20 AM






If you already have a script to run it with cmd in DOS mode (I assume
via OSQL), what about using the at command to schedule the job to run
at specific times ?
Another option, if you want to do it with SQL Server is to Execute the
script time scheduled with the SQL Agent.

HTH, Jens Suessmeyer.


Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Can I run a Script at scheduled time? - 09-20-2005 , 02:14 PM



You could use a 3rd party scheduler, windows scheduler or SQL Server
Agent to do your scheduling

Allan

"k_s" <ks (AT) discussions (DOT) microsoft.com> wrote


Quote:
Hi all,
I have to run a DTS on a remote server, which copies data from one DB to
another on same server.
The problem is, the connection is poor and I've not been able to save
the
DTS on that server. There is no tech guy who can do the work of saving
DTS ,
for me.
I have created a script, which do the same work for me as the DTS, and
run
it manually everyday on remote server using Query analyzer.
Ok, I can create a cmd and batch file of the script and run it, but how
to
run it as a job so that I can schedule it?
thanks


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.