![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hello , I wanted to know how to make a dynamic FTP Connection. My FTP Server will be having a FTP server Name , File path, FTP Server Name, FTP User Name, FTP Password. Our Database maintains different FTP servers for different clients.In DTS we used below code in activex script task to connect to the FTP Dynamically. "Set objTask = objPackage.Tasks(cstr("DTSTask_DTSFTPTask_2")).Cus tomTask objTask.SourceLocation = 0 objTask.sourcesite = DTSGlobalVariables("g_str_ftpservername").Value objTask.SourceUsername = DTSGlobalVariables("g_str_ftpusername").Value objTask.SourcePassword = DTSGlobalVariables("g_str_ftppassword").Value objTask.NonOverwritable = False objTask.SourceFilename = srcFiles objTask.destsite = DTSGlobalVariables("g_str_filelocation").Value Now we are migrating our workflows to SSIS (SQL Server 2005). The problem is we are unable to find solution for dynamically connecting to FTP Server which maintains a password. Can any body help please. Thanks, Kiran G |
#2
| |||
| |||
|
|
Create your FTP connection manager (with static values). Create a package configuration by selecting Package Configurations from the SSIS menu, then export the ConnectionString, ServerName, ServerPassword and ServerUserName properties of the FTP connection manager to the package configuration location. Save your package configuration to an XML file or to a SQL Server table, because they allow multiple values to be saved. Each time you want new values for ServerName, ServerPassword, etc. you just enter them into the configuration file or SQL Server table. This way your package will run dynamically with the whatever values you have saved in your package configuration. The SSIS tutorial also shows you how to create a package configuration. Hope this helps. Charles Kangai, MCT, MCDBA Author of Learning Tree's 4-day course: "SQL Server 2005 Integration Services" URL: http://www.learningtree.com/courses/134.htm Author of Learning Tree's 4-day course: "SQL Server Reporting Services" URL: http://www.learningtree.com/courses/523.htm "kiran" wrote: Hello , I wanted to know how to make a dynamic FTP Connection. My FTP Server will be having a FTP server Name , File path, FTP Server Name, FTP User Name, FTP Password. Our Database maintains different FTP servers for different clients.In DTS we used below code in activex script task to connect to the FTP Dynamically. "Set objTask = objPackage.Tasks(cstr("DTSTask_DTSFTPTask_2")).Cus tomTask objTask.SourceLocation = 0 objTask.sourcesite = DTSGlobalVariables("g_str_ftpservername").Value objTask.SourceUsername = DTSGlobalVariables("g_str_ftpusername").Value objTask.SourcePassword = DTSGlobalVariables("g_str_ftppassword").Value objTask.NonOverwritable = False objTask.SourceFilename = srcFiles objTask.destsite = DTSGlobalVariables("g_str_filelocation").Value Now we are migrating our workflows to SSIS (SQL Server 2005). The problem is we are unable to find solution for dynamically connecting to FTP Server which maintains a password. Can any body help please. Thanks, Kiran G |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |