Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to schedule a windows application through Enterprise manager ?

Status
Not open for further replies.

snr

Programmer
Joined
Oct 8, 2001
Messages
78
Location
US
Is it possible to launch an windows application for example an exe , through Sql Servers Enterprise manager ?
Can I schedule it ?

Please help ...
Thanks
 
Yes,

Go to SQLServer Agent / Jobs and create a new job. Add a new step of type 'Operating System Command (cmdExec)' and type in the path and name of the executable you want to run.

Be aware that the EXE will run on the server and the path will also relate to the server.

This can then be scheduled by adding scedules etc.

Hope this helps

Chris Dukes
 
I tried that .... its saying last task succeeded
but i didn't see any change in the output file.
So i think it is not at all doing anything !

What can be the reason ?
 

When you schedule a Job, it runs under the SQL Agent or SQL Server account. It will not see MAPPED drives. It will not be able to get to shares or directories on other servers if the account doesn't have permissions.

You can edit the Job and open the Step that executes the program. Click on the Advanced tab of the Job Step. Near the bottom of the dialog you'll see an output file. Enter a location of a file to write a log. You should be able to examine that log and find what is happening with the Job. Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top