|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by Svlss in MS SQL Server, Scripting Languages, Shell Scripting
i am trying to run a job from a .bat file
i Just ran this sql query (exec msdb..sp_start_job 'myjob') and it works fine it runs my job
now i created a .txt file and used this and i using this command
osql -S server1 -U user1 -P password1 -D DBase1 "exec msdb..sp_start_job 'myjob'" and name the file as job.txt
now how to run this this job.txt file fom .bat file
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625