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)
 DTS Executing .bat file in execute process task

Author  Topic 

khana04
Starting Member

4 Posts

Posted - 2009-03-30 : 16:17:57
I havea simple DTS package which execute a .bat file on local server
EXECUTE PROCESS TASK has the content below
D:\datafiles\tab\PushData.bat


PushData.bat has the following content, its basically delete bunch of files and than zip them using alzip utility

del D:\datafiles\seatab\filson.zip
alzip -a "D:\datafiles\tab\*.csv" "D:\datafiles\tab\Compress.zip

package runs fine manually and takes two minutes to complete.
My probelm this DTS package when schedule as SQL JOb it hangs and run for ever.

shaunc
Starting Member

28 Posts

Posted - 2009-04-01 : 12:29:44
Is the user who owns the scheduled job the same as the user you're logged in as when you run the package manually? Also, try specifying the full path to alzip in the batch file. It's possible that the agent can't find the exe in its path.
Go to Top of Page
   

- Advertisement -