String Concatenation
hi,
in ssis package reading data stage table , storeing in main table between need derive 1 column
have use derived column transformation.
cloumn values
input:2009-898978-1
want output: 898978
i have write code in sql this
[substring(substring( avtalsnummer,charindex('-',avtalsnummer)+1,len( avtalsnummer)),1,charindex('-',substring( avtalsnummer,charindex('-',avtalsnummer)+1,len( avtalsnummer)))-1)]
above code return values between special character "-".
when put code in derive column transformation in ssis give error .expression syntex become red.
please tell me how convert above code per ssis coding standard.
solution:
substring(avtalsid,findstring(avtalsid,"-",1) + 1,(len(avtalsid) - findstring(avtalsid,"-",1) - findstring(reverse(avtalsid),"-",1)))
SQL Server > SQL Server Integration Services
Comments
Post a Comment