How to get part of file name parsed to the columnns in SSIS

Looking to get the first three characters of a file name into a column in sql.What is the best way to do that ?

for example:

file name = ALB_20150725.csv

All I want is ALB, and i want to insert this value into a column
Auerelio VasquezETL DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott PletcherSenior DBACommented:
LEFT(column_name, 3)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Auerelio VasquezETL DeveloperAuthor Commented:
I apologize I didn't clarify. I'm using a derrived column with a variable name:

trying to use this:


however, it seems substring can only handle 20 characaters ?

the file name looks like this:
D:\Projects\OTS\MYSSA Dashboard\Data\ATL_20150725Text.csv

All I want is the ATL Portion

but when the ssis moves to the next file, it may change to NYC or DAL, there are about 26 files to be processed all from different regions.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.