0

I have an ssis package that imports a view from one database into different db and places the data into a table. The view has all datatypes set to varchar which I cannot change. Some of these varchars are really datetime values. The view has set all NULL values to N/A and i want to replace the N/A with db null. The table I am importing the data into has the date columns set to datetime rather than varchar and I cannot insert N/A into it. This is my first ssis package and I'm having some issues with getting an expression setup to accomplish this. What would the string replace expression look like to make this happen? Thanks.

2 Answers 2

1

I was going about this the wrong way. The soultion is just to use as sql query to update the data rather than an expression.

Sign up to request clarification or add additional context in comments.

Comments

0

I haven't tested but would something like this work in a derived column?

REPLACE("N/A", [yourfieldname] , NULL(DT_WSTR, 30) )

(adjust the string length to the current stringlength)

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.