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 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Execute batch file on different server

Author  Topic 

schuhtl
Posting Yak Master

102 Posts

Posted - 2004-07-16 : 11:01:46
Is it possible to use DTS to execute a batch file located on a different server? I have a sql server (A) that has a daily job that runs and I would like for the last step in the dts package to execute a batch file on server (B) that performs several web-cache clearing events. Server (B) is not a SQL server!

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2004-07-16 : 11:06:26
exec master.dbo.xp_cmdshell '\\webserver\c\winnt\deleteMyWebSite.bat'

if you got permission

Corey
Go to Top of Page

schuhtl
Posting Yak Master

102 Posts

Posted - 2004-07-22 : 08:47:31
This worked great, thank you for your help!
Go to Top of Page
   

- Advertisement -