dbTalk Databases Forums  

FTP Connection Properties / Connection String Problem

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


Discuss FTP Connection Properties / Connection String Problem in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tim W.
 
Posts: n/a

Default FTP Connection Properties / Connection String Problem - 04-28-2006 , 09:56 AM






Chaps,
we're trying to dynamically set username and password for an SSIS FTP
Connection. However, the format of the connection string is not documented,
as far as the setting of the login-properties for FTP is concerned. I have
checked several databases and forums, but haven't come to any result so far.

It looks like a password can be set only indirectly by setting the full
ConnectionString. For example the following script
Public Sub Main()

Dim conn As ConnectionManager = Dts.Connections("testConn")
conn.ConnectionString="Data Source=MySQLServer;User
ID=sa;Password=test;Initial Catalog=TestDb;Provider=SQLNCLI.1;"

Dts.TaskResult = Dts.Results.Success

End Sub

can modify an existing SQL Server Connection including the password. Note
the password is removed immediatly from the string after setting it this
way, but it seems it is still stored internally.

In an analogous way it should be possible to modify an existing FTP
Connection. Sadly, I don't know the syntax for that type of connection.

MsgBox'ing the ConnectionString for an FTP Connection looks like
168.192.1.2:21 and does not even include the ServerUserName.

Somebody had this problem before?

Tim




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

Default RE: FTP Connection Properties / Connection String Problem - 04-30-2006 , 09:49 PM






Hello Tim,

You can set properties of FtpClientConnection through SSIS Designer or
programmatically. Please refer to "FtpClientConnection.ServerPassword
Property " in SQL 2005 BOL for details.

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===


This posting is provided "AS IS" with no warranties, and confers no rights.



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.