Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 stop SQL Server Agen jon in cmdexec

Author  Topic 

talg80
Starting Member

5 Posts

Posted - 2012-07-30 : 05:45:07
i run a program that run a snapshot using a step in SQL Server Agent job ,
cd "C:\Program Files (x86)\EMC\rm\gui"
rmcli host=172.16.2.98 port=65432 cmd="login user=smart password=Abcd1234; if unmount-replica position=last appset=SNSMARTOLAP09_D_FOR_32(Administrator) then exit 0 elase exit1;"

as you can see it return 1 or 0
how can i stop the job if i geet 0 ???


   

- Advertisement -