dbTalk Databases Forums  

What object do you use to execute

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


Discuss What object do you use to execute in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
James Johnson
 
Posts: n/a

Default What object do you use to execute - 01-23-2004 , 10:38 AM






a file that runs a series of FTP commands. I created a
textfile that has a series of FTP commands in it and I
would like to know how I can use DTS to run the commands
in the batch file. To run from a command prompt,

ftp -s:filename

but how from dts and using what object or process?

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

Default RE: What object do you use to execute - 01-23-2004 , 11:36 AM






Use execute sql task and use th extended stored procedure, xp_cmdshell to invoke the command prompt...

hth

----- James Johnson wrote: -----

a file that runs a series of FTP commands. I created a
textfile that has a series of FTP commands in it and I
would like to know how I can use DTS to run the commands
in the batch file. To run from a command prompt,

ftp -s:filename

but how from dts and using what object or process?


Reply With Quote
  #3  
Old   
James
 
Posts: n/a

Default RE: What object do you use to execute - 01-23-2004 , 12:25 PM



When I use cmd to execute this:
ftp -s:c:\mytest\ftp.txt
it works fine, but when I try this:

use master
EXEC master..xp_cmdshell 'ftp -s:c:\myTest\ftp.txt'

It looks like it works, but no file is in the directory.

ANy suggestions.


Quote:
-----Original Message-----
Use execute sql task and use th extended stored
procedure, xp_cmdshell to invoke the command prompt...

hth

----- James Johnson wrote: -----

a file that runs a series of FTP commands. I
created a
textfile that has a series of FTP commands in it and
I
would like to know how I can use DTS to run the
commands
in the batch file. To run from a command prompt,

ftp -s:filename

but how from dts and using what object or process?

.


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: What object do you use to execute - 01-24-2004 , 12:35 AM



Have a look at the ExecuteProcess task

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"James Johnson" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
a file that runs a series of FTP commands. I created a
textfile that has a series of FTP commands in it and I
would like to know how I can use DTS to run the commands
in the batch file. To run from a command prompt,

ftp -s:filename

but how from dts and using what object or process?



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.