SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS 2012- Pass filename to SSIS Package


SSIS 2012- Pass filename to SSIS Package

Author
Message
Pulivarthi Sasidhar
Pulivarthi Sasidhar
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1682 Visits: 1018
Hi,

I have to schedule job as follows.

Step 1. Will trigger a job on another Server by CMD. and generates .dat/.csv file with timestamp.
Step 2. Execute SSIS Package for extracted file in Step1

My question is, i have to pass the file name(created in Step1) to execute the SSIS package.

Thanks,
SP
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27295 Visits: 13268
Can't you put the generated files in specific folder and use a for each loop in the SSIS package to pick up the files?


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Pulivarthi Sasidhar
Pulivarthi Sasidhar
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1682 Visits: 1018
Thanks for Info...
But in mycase, the Job generates Single file only as Filename_YYMMDD_HHMMSS.csv

How my SSIS package read this file as YYMMDD_HHMMSS[ This will differ at the time of generatio and at the time of reading by SSIS]......If passing Filename as parameter to SSIS package , i can proceed with implementation.

I am looking for passing Filename as parameter to SSIS Package, based on which SSIS will import data......
Pulivarthi Sasidhar
Pulivarthi Sasidhar
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1682 Visits: 1018
http://technet.microsoft.com/en-us/library/ff877990.aspx


http://technet.microsoft.com/en-us/library/ff878152.aspx

These helped from executing SSIS with parameter from SSIS Engine.....

Can i use same commands for scheduling in SQL Agent...

Will those "catalog." directly use in Database Engine?
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27295 Visits: 13268
Pulivarthi Sasidhar (12/17/2013)
Thanks for Info...
But in mycase, the Job generates Single file only as Filename_YYMMDD_HHMMSS.csv

How my SSIS package read this file as YYMMDD_HHMMSS[ This will differ at the time of generatio and at the time of reading by SSIS]......If passing Filename as parameter to SSIS package , i can proceed with implementation.

I am looking for passing Filename as parameter to SSIS Package, based on which SSIS will import data......


Use a wildcard in your for each loop: Filename_*.csv


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search