Hi @jn93 ,
If the length for ukey is fixed as 15, you may also use left function in SSIS.
LEFT(ukey,15)
If the length for ukey is not fixed, you may use token function in SSIS.
TOKEN(ukey,"^",1)
If you want to do that with T-SQL code, try with below.
declare @ukey as nvarchar(max)='91TMIQUO6123265^91TMIQUO6123265^91TMIQUO6123265'
select left(@ukey, charindex('^', @ukey + '^') - 1)
or
declare @ukey as nvarchar(max)='91TMIQUO6123265^91TMIQUO6123265^91TMIQUO6123265'
select left(@ukey, 15)
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.