I recently ran into this myself. I put a "pause" in my batch file to figure
out what was going on. What I found out was that when I would edit my DTS
package in some way and then run it it would look run the batch file in the
directory where the batch file was located. As a result, it would find the
scripts I was trying to run from within my batch file. When I would close
Enterprise Manager it would run the batch file in a different directory. I
think it was like c:\program files\microsoft sql server\binn. To get around
this I put at the top of my batch file commands to change directories to my
proper working directory before executing my osql statements. It is
something like:
c:
cd\temp
osql .....
"Cory Rammer via SQLMonster.com" wrote:
Quote:
I should have mentioned the error message I get when package execution
fails:
"CreateProcessTask 'DTSTask_DTSCreateProcessTask_1': Process returned code
9009, which does not match the specified SuccessReturnCode of 0."
Thanks,
Cory
--
Message posted via http://www.sqlmonster.com |