dbTalk Databases Forums  

Starting SQL Server 2000 Job from a command line

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


Discuss Starting SQL Server 2000 Job from a command line in the microsoft.public.sqlserver.dts forum.



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

Default Starting SQL Server 2000 Job from a command line - 05-21-2006 , 11:13 PM






Hi,

I was wondering is there is a way to start a SQL Server 2000 Job from a

command line?? I know you can start a DTS using the dtsrun utility but

have not been able to find any information on starting actual jobs!!


If any one can point me in the right direction that would be great.


Cheers,
MH


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

Default Re: Starting SQL Server 2000 Job from a command line - 05-22-2006 , 04:14 AM






The stored proc sp_start_job can be used to start jobs.

In order to do this from a command line you will need to use the OSQL
utility.

Have a look at both in BOL, or type OSQL /? from the cmd line

--
HTH. Ryan


"Biffster007" <mark.harvey (AT) onesource (DOT) co.nz> wrote

Quote:
Hi,

I was wondering is there is a way to start a SQL Server 2000 Job from a

command line?? I know you can start a DTS using the dtsrun utility but

have not been able to find any information on starting actual jobs!!


If any one can point me in the right direction that would be great.


Cheers,
MH




Reply With Quote
  #3  
Old   
Biffster007
 
Posts: n/a

Default Re: Starting SQL Server 2000 Job from a command line - 05-23-2006 , 11:09 PM



Nice one Ryan!!!

I never new the osql utility existed...

A very nice little tool!!!

Thank you very much!!!

Che,
MH


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.