Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SSIS FTP Task

 
   Database Forums (Home) -> DTS RSS
Next:  sp_encryption system_encr_passwd, "newpass&q..  
Author Message
Sachin Chavan

External


Since: Mar 27, 2007
Posts: 5



(Msg. 1) Posted: Tue Apr 17, 2007 10:28 am
Post subject: SSIS FTP Task
Archived from groups: microsoft>public>sqlserver>dts (more info?)

Hello,

Can I supply a batch of fiels to be downloaded to the FTP Task instead of
configuring it 2 download a single file? Or Do I hv to loop around the FTP
Task in order to download mutiple files??

Thanks in Advance,
Sachin R. Chavan.

 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Wei Lu [MSFT]

External


Since: Jul 10, 2006
Posts: 76



(Msg. 2) Posted: Wed Apr 18, 2007 3:55 am
Post subject: RE: SSIS FTP Task [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Chavan,

You need to use the For loop to download mutiple files from FTP.

You could use a Variable in the loop to specify the receive path.

Sincerely,

Wei Lu
Microsoft Online Community 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.

 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Sachin Chavan

External


Since: Mar 27, 2007
Posts: 5



(Msg. 3) Posted: Wed Apr 18, 2007 7:52 am
Post subject: RE: SSIS FTP Task [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi,

I am Executing a .Net component in the Script Task and this component is
returning a DataTable containing Files newly added to the FTP.
Can I pass this as return value from Script Task and collect it in some
package variable so that I can loop through this file list n pass on it to
the FTP Task.

I am New to SSIS so if u can point me to some code sample on this if u are
aware of any, will be real help.

Thanks,
Sachin R. Chavan.
"Wei Lu [MSFT]" wrote:

> Hello Chavan,
>
> You need to use the For loop to download mutiple files from FTP.
>
> You could use a Variable in the loop to specify the receive path.
>
> Sincerely,
>
> Wei Lu
> Microsoft Online Community 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.
>
>
 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Wei Lu [MSFT]

External


Since: Jul 10, 2006
Posts: 76



(Msg. 4) Posted: Thu Apr 19, 2007 5:23 am
Post subject: RE: SSIS FTP Task [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Chavan,

You could set a ReadWrite Variable to get the filepath of the FTP file in
the Script Task and contain this Script Task in a For loop container.

And in the FTP task, you could use the vatiable as the Remotepath.

Here are some sample article:

http://www.databasejournal.com/features/mssql/article.php/3518431

Sincerely,

Wei Lu
Microsoft Online Community 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.
 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Sachin Chavan

External


Since: Mar 27, 2007
Posts: 5



(Msg. 5) Posted: Thu Apr 19, 2007 9:12 am
Post subject: RE: SSIS FTP Task [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Lu,

Sorry, If I miss spell ur name actaully I am confused abt what's ur First
name so forgive me for that.

Anyways, where I am Facing problem is, when I try to assign some value to
the Read/Write variable of the Script Task, SSIS is throwing some Variable
Lock exception saying the Variable is already lock n there is deadlock on
that variable. Also it shows that it tries to gain lock on this variable
around abt 16 times when i switch 2 the Exception Results Tab.

There is no code in the Script Main except the following lines:


Dim variables As Variables

If Dts.Variables.Contains("FTPFile") = True Then
Dts.VariableDispenser.LockOneForWrite("FTPFile", variables)
End If

variables("FTPFile").Value = "MyFile.txt"

Interesting thing is when I lock this for Read as a ReadOnly variable
surprisingly things work all fine. No errors!!!

I am not getting where I am going wrong, it will be really nice if u can
send in the correct lines of code n let me know where I am getting wrong.

Thanks in Advance,
Sachin R. Chavan.

"Wei Lu [MSFT]" wrote:

> Hello Chavan,
>
> You could set a ReadWrite Variable to get the filepath of the FTP file in
> the Script Task and contain this Script Task in a For loop container.
>
> And in the FTP task, you could use the vatiable as the Remotepath.
>
> Here are some sample article:
>
> http://www.databasejournal.com/features/mssql/article.php/3518431
>
> Sincerely,
>
> Wei Lu
> Microsoft Online Community 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.
>
>
 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Wei Lu [MSFT]

External


Since: Jul 10, 2006
Posts: 76



(Msg. 6) Posted: Fri Apr 20, 2007 3:28 am
Post subject: RE: SSIS FTP Task [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

You need to unlock the variable after you write the value.

Here is an example.

http://www.developerdotstar.com/community/node/512

Sincerely,

Wei Lu
Microsoft Online Community 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.
 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Sachin Chavan

External


Since: Mar 27, 2007
Posts: 5



(Msg. 7) Posted: Mon Apr 23, 2007 2:26 am
Post subject: RE: SSIS FTP Task [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Lu,

That Solves my problem, am able to write package variables now.

Thanks,
Sachin R. Chavan.

"Wei Lu [MSFT]" wrote:

> Hello,
>
> You need to unlock the variable after you write the value.
>
> Here is an example.
>
> http://www.developerdotstar.com/community/node/512
>
> Sincerely,
>
> Wei Lu
> Microsoft Online Community 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.
>
>
 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Wei Lu [MSFT]

External


Since: Jul 10, 2006
Posts: 76



(Msg. 8) Posted: Tue Apr 24, 2007 3:55 am
Post subject: RE: SSIS FTP Task [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

My pleasure, Sachine.

Sincerely,

Wei Lu
Microsoft Online Community 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.
 >> Stay informed about: SSIS FTP Task 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Webservice task in SSIS - Hello, I'm using a webservice task to get data from a sharepoint site. I am trying to retrieve the data from a view in a list on a sharepoint site. So when I execute the task, I get the following error message, and I really don't have a clue what it...

Using COM Reference in SSIS Script Task - I need to reference the Microsoft WMI Scripting Library in a Script Task. When I select Add Reference it only shows .NET references to add. Is it possible to use COM libraries/components, specifically WbemScripting, inside of a SSIS Script Task? ..

SSIS FTP Task fails when file does not exist - Is there any way to make the SSIS FTP Task ignore the case when you try to retrieve a file that does not exist on the remote FTP server? We have a job that attempts to get the last 10 days of files from an FTP site (the dates are included in the file....

SSIS Data Transfer task from TERADATA - I've been given the "honor" of being the guinea pig with a new installation of SQL 2005 to replace an aging database. The task is simple. I need to retrieve a table of ~12M rows from a remote TERADATA server and store it in a local table. ...

SSIS SP2 -Can't create Data Flow task. - Since updating to SQL Server 2005 sp2, I get an error when I drag & drop a Data Flow task into the control flow designer. The error reads: Failed to create the task. Additional Information: The designer could not be initialized. ..
   Database Forums (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]