Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Insert dynamic file name into table

Author  Topic 

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2015-04-01 : 10:56:21
I have sftp path with username and password.

I want to grab the file insert into table.

The filename will be dynamic as I cant set the expression to be fix. Example fileName_20150401_2235.txt

How can I grab and insert the data into table in SSIS?

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-04-01 : 12:31:06
The expression can include variables such as date and time
Go to Top of Page

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2015-04-01 : 18:35:31
I want to set it something like filename*.txt

Is that possible? Any step by step process to apply this?
Go to Top of Page

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-04-01 : 20:07:29
in expression editor:

1. drag variable name to edit area
2. type

+ "*.txt"
Go to Top of Page

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2015-04-01 : 21:06:08
Any sample to refer example?
Go to Top of Page

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2015-04-01 : 23:10:11
how can I set the command to get and put the file to local?
Go to Top of Page
   

- Advertisement -