Auerelio Vasquez
asked on
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
for example:
file name = ALB_20150725.csv
All I want is ALB, and i want to insert this value into a column
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
trying to use this:
substring(@[User::v_Filena
however, it seems substring can only handle 20 characaters ?
the file name looks like this:
D:\Projects\OTS\MYSSA Dashboard\Data\ATL_2015072
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.