Re: script for ftp
- From: "SAC" <sac@xxxxxxxxxxxxx>
- Date: Thu, 29 Mar 2007 13:59:52 -0500
Thanks! Got it!
"narayaana" <ugo.peltier@xxxxxxx> wrote in message
news:uVGYkpEbHHA.4140@xxxxxxxxxxxxxxxxxxxxxxx
Quite not the same and regarding SSIS current handling I would say a bit
easier in you case,
At run time you can re-specify Global Variables values in dtsrun command
line
Packages Global variables can be set in Package > Properties > Global
Variables Tab.
not in detail but grossly, for a Global Variable of type string: add to
dtsrun: /A VarName:8=Value (8 stands for string type, see help > dtsrun
utility)
you can then use a dynamic property task object to dynamically affect
these Global Variables to other task in the dts and in particular to ftp
transfer task.
Note: dynamic properties task can use other sources than Global Variables
such as ini file, sql query, environement vars etc..
I usually have to use per database specific parameter values, which is why
I would tend to use Sql Query in SQL2000 times...
"SAC" <sac@xxxxxxxxxxxxx> wrote in message
news:uJDyWLAbHHA.5080@xxxxxxxxxxxxxxxxxxxxxxx
Sorry, I forgot to tell you that this is 2000.
"narayaana" <ugo.peltier@xxxxxxx> wrote in message
news:%23ppu$i8aHHA.3960@xxxxxxxxxxxxxxxxxxxxxxx
2 ways to do so:
1-
your package is small, when you run the package (I suggest you connect
to SSIS service, write click on package (import it if necessary), run
...
you are invited to change connection strings (to files, variables etc.)
in section "Connection Manager"
a command line is generated, you can copy it!
modify from this model!
2-
use SSIS > Package Configuration in Visual Studio management,
you can then save the value in an xml config file, an environment var
etc (just once you are in SSIS > Package Configuration management, press
on help ;))
"SAC" <sac@xxxxxxxxxxxxx> wrote in message
news:OFTwdO8aHHA.2064@xxxxxxxxxxxxxxxxxxxxxxx
I made a batch file which runs an ftp script. I'd like to put this
either into a sp. Not sure how to go about this.
Here's the batch file:
ftp -i -s:c:\laufer.txt laufer.com > c:\laufer.log
It uses this laufer.txt
The laufer.txt is:
<User Name>
<Password>
ascii
lcd c:\temp
cd /EDIOUT/TRANPRO
Mget *
quit
I tried using the ftp task and can get connected but I nned to change
directory and the download a file and save that file to a specific
directory (c:\temp) in this sample.
Any help would be appreciated.
Thanks.
.
- References:
- script for ftp
- From: SAC
- Re: script for ftp
- From: narayaana
- Re: script for ftp
- From: SAC
- Re: script for ftp
- From: narayaana
- script for ftp
- Prev by Date: Re: Renaming db for all connections (Russel Loski)
- Next by Date: RE: Importing XML files to SQL Database using SSIS.
- Previous by thread: Re: script for ftp
- Next by thread: Proper Group for Question on Script Transformation Editor
- Index(es):
Relevant Pages
|