Solved

SSIS Connection as variable

Posted on 2013-06-21
2
382 Views
Last Modified: 2016-02-11
I am in the process of designing an ssis package that will need to insert ftp'd files into a table.
It would be convenient if I knew of a way to pass the name of the file to the SSIS  bulk transfer task as a variable so that it could reflect different file names. IS THAT POSSIBLE?

Right now the sql server is sql 2005 but it will be upgraded to sql 2008 r2.

thanks
0
Comment
Question by:qube09
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
Alpesh Patel earned 500 total points
ID: 39267549
First Download all files to Folder using FTP tasks "Receive files" operation.

Then take Foreach loop and use File enumerator to iterate files from the (Download) folder.

Take each file path in variable.

Use appropriate task to data data to sql. if file structure is same then you can use Dataflow task if different then use bulk insert as well.

Foreach task
0
 

Author Comment

by:qube09
ID: 39267570
yes I agree that that is the potential path but there are no specifics.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS SQL Update query with connected table data 3 65
SQL - format decimal in a string 5 52
the way to learn Microsoft BI 13 51
denied execute as 13 33
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question