I need an SSIS expression to get the left part of a string before the separator, and then put the new string in a new column. I checked in derived column, it seems no such e
You can specify the length to copy in the SUBSTRING function and check for the location of the dash using CHARINDEX
SELECT SUBSTRING(@sString, 1, CHARINDEX('-',@sString) - 1)
For the SSIS expression it is pretty much the same code:
SUBSTRING(@[User::String], 1, FINDSTRING(@[User::String], "-", 1)-1)