all groups > sql server dts > january 2006 >
You're in the

sql server dts

group:

SSIS: best data flow transformation for converting bad dates to nu



SSIS: best data flow transformation for converting bad dates to nu David Norman
1/5/2006 3:18:02 PM
sql server dts: Source is varchar, want to convert to datetime but need to null any bad dates
first.

Can't use the derived column transformation as it doesn't support the ISDATE
function.

I could feed the error rows to a derived column which converts to null based
on errorcode and then union all with the successful rows but this is a
cumbersome option.

I'd prefer a solution that doesn't involve script components or ole db
commands.

Thanks in advance
Re: SSIS: best data flow transformation for converting bad dates to nu Allan Mitchell
1/5/2006 3:27:09 PM
Hello David,

Why not use a RegEx transform? That way you can validate the value.

We have one here. We'd love to know how you get on with it as well

http://www.sqlis.com/default.aspx?91


Allan

[quoted text, click to view]

Re: SSIS: converting bad dates to null David Norman
1/5/2006 3:55:03 PM
Thanks but I have to keep the installation clean so I won't be using any
third party components.


[quoted text, click to view]
AddThis Social Bookmark Button