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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Insert dynamic file name into table
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peace
Constraint Violating Yak Guru

420 Posts

Posted - 04/01/2015 :  10:56:21  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

2780 Posts

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

peace
Constraint Violating Yak Guru

420 Posts

Posted - 04/01/2015 :  18:35:31  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

2780 Posts

Posted - 04/01/2015 :  20:07:29  Show Profile  Reply with Quote
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 - 04/01/2015 :  21:06:08  Show Profile  Reply with Quote
Any sample to refer example?
Go to Top of Page

peace
Constraint Violating Yak Guru

420 Posts

Posted - 04/01/2015 :  23:10:11  Show Profile  Reply with Quote
how can I set the command to get and put the file to local?
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000