dbTalk Databases Forums  

DTS batch file package doesn't work as Scheduled Job

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS batch file package doesn't work as Scheduled Job in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
don larry
 
Posts: n/a

Default DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 03:24 PM






Greetings All,

I have one script that i am able to execute as a DTS package. When I
schedule and run as a Job..no result!

The script is a batch file that retrives a .txt from my ftp site and
copies onto my local machine...any idea why it wouldn't work as a
Scheduled Job? All my other packages work seemlessly.

Here's the batch:

open mydomain.com
myusername
mypassword
cd public/catalog/
get myfile.txt
\\myroot\myfolder\myfile.txt
disconnect
quit

Thank you in advance,
Don Larry


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #2  
Old   
Denny
 
Posts: n/a

Default Re: DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 04:38 PM






Make sure that the account that the SQL Server Agent is running under has
access to the batch file, and has access to the place the downloaded file is
going to.

--
Denny Cherry
DBA
GameSpy Industries
"don larry" <donlarry17 (AT) hotmail (DOT) com> wrote

Quote:
Greetings All,

I have one script that i am able to execute as a DTS package. When I
schedule and run as a Job..no result!

The script is a batch file that retrives a .txt from my ftp site and
copies onto my local machine...any idea why it wouldn't work as a
Scheduled Job? All my other packages work seemlessly.

Here's the batch:

open mydomain.com
myusername
mypassword
cd public/catalog/
get myfile.txt
\\myroot\myfolder\myfile.txt
disconnect
quit

Thank you in advance,
Don Larry


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #3  
Old   
don larry
 
Posts: n/a

Default Re: DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 05:54 PM



Hi Denny,

The account under SQL Server Agent is the same i'm using, and i have
explict access to the file and the folder it's writing in....any other
possibilities?

Alex



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #4  
Old   
Denny
 
Posts: n/a

Default Re: DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 06:00 PM



Do you get any output at all from the batch file?

--
Denny Cherry
DBA
GameSpy Industries
"don larry" <donlarry17 (AT) hotmail (DOT) com> wrote

Quote:
Hi Denny,

The account under SQL Server Agent is the same i'm using, and i have
explict access to the file and the folder it's writing in....any other
possibilities?

Alex



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
  #5  
Old   
don larry
 
Posts: n/a

Default Re: DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 06:03 PM



Hi Denny,

The account under SQL Server Agent is the same i'm using, and i have
explict access to the file and the folder it's writing in....any other
possibilities?

Alex



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #6  
Old   
don larry
 
Posts: n/a

Default Re: DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 06:13 PM



Hi Denny,

The account under SQL Server Agent is the same i'm using, and i have
explict access to the file and the folder it's writing in....any other
possibilities?

Alex



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #7  
Old   
don larry
 
Posts: n/a

Default Re: DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 06:24 PM



No, the file is left unchanged, data is not being refreshed..Th job
doesn't fail, it shows "success", but no output!

A question: is there a better way to schedule the execution of a batch
file? i.e. if SQL doesn't want to schedule, how else to do it?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #8  
Old   
Denny
 
Posts: n/a

Default Re: DTS batch file package doesn't work as Scheduled Job - 09-15-2003 , 06:27 PM



You can schedule it to run directly under a job, with out the DTS package.
Or you can schedule the batch file to run with the Scheduled Tasks icon in
the Control Panel.

--
Denny Cherry
DBA
GameSpy Industries
"don larry" <donlarry17 (AT) hotmail (DOT) com> wrote

Quote:
No, the file is left unchanged, data is not being refreshed..Th job
doesn't fail, it shows "success", but no output!

A question: is there a better way to schedule the execution of a batch
file? i.e. if SQL doesn't want to schedule, how else to do it?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.