sql server 2005 - FTP Connection string using expression in SSIS -
in ssis 2005 package, need give ftp connectionstring via expression need keep configurable user dtsconfig file.
at moment tried giving following expression:
connectionstring = @[user::ftpserver] + "." + @[user::ftpuser] + "." + @[user::ftppass]
for unique syntax, took pointers discussion @ http://social.msdn.microsoft.com/forums/en-us/sqlintegrationservices/thread/3713e9a5-343a-4c5b-ac5d-1508cd5ab8be
my ftpserver variable has port info in format myservername:21.
but getting error "530 user anonymous unknown"
any idea how can fix error?
i think variables should have 2 ::
not one.
@[user::ftpserver] + "." + @[user::ftpuser] + "." + @[user::ftppass]
edit:
you may having trouble due password being cleared
what set these details beforehand via script task. run script , run ftp task - think should work.
public class scriptmain public sub main() dim ftpconnectionmanager connectionmanager 'set variable existing connection manager ' replace "ftp server" name of existing ftp connection manager ftpconnectionmanager = dts.connections("ftp server") ftpconnectionmanager.properties("servername").setvalue(ftpconnectionmanager, dts.variables("ftpserver").value) ftpconnectionmanager.properties("serverport").setvalue(ftpconnectionmanager, dts.variables("ftpport").value) ftpconnectionmanager.properties("serverusername").setvalue(ftpconnectionmanager, dts.variables("ftpusername").value) ftpconnectionmanager.properties("serverpassword").setvalue(ftpconnectionmanager, dts.variables("ftppassword").value) dts.taskresult = dts.results.success end sub end class
Comments
Post a Comment