ssis This seems so simple, yet I can't figure it out. I am transferring one table to another in a different database. I am using SQL Server Data Tools 2010. I have everything lined up, column to column. I have one column that needs help. Both the source and destination are nvarchar(3), and represent a code. In the source file, if the code is only two letters it is appended with an x. So ap will read as apx. I guess this was to ensure that every cell contained 3 letters. The destination does not have the x, ap will read ap. I use several joins with the destination table, but when I have joined the source table it only joins when there is not an x.
Can I do some kind of case statement, if source ends in x only insert first two letters, else (i.e. no x) insert as is. I am not sure which component to use.
I've been working on this for hours. Thanks
↧