0

I'm using SQL Server 2008 Integration Services (SSIS) and would like change empty strings on one of my columns (Unicode string(DT_WSTR-50)) to NULLs. I found some related posts but that doesnt seem to work.

I tried: Column == "" ? NULL(DT_WSTR,50) : Column

1 Answer 1

1

How about this :

LEN(LTRIM(RTRIM([ColumnName])))==0 ? NULL(DT_WSTR, 10) : LTRIM(RTRIM([ColumnName]))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.