Oracle and SSIS both have the ability to handle dates which SQL server's DateTime type won't accept.
A reasonably simple solution is to leverage the script component to detect and repair the invalid dates... here's a step-by-step guide for doing exactly that...
Give it a whirl and let me know what you think!
A reasonably simple solution is to leverage the script component to detect and repair the invalid dates... here's a step-by-step guide for doing exactly that...
- Add a script component to your data flow, in transform mode.
- Open the editor for the script component
- Under Input Columns, select all the date columns you want to repair, and set their usage type to READ/WRITE (this is vital, else the script will break).
- Under Script, click the edit script button
- Select and delete all text
- Paste the C# code from here
- Close the source code window, click OK to dismass the script editor.
- Run the data flow.
Give it a whirl and let me know what you think!
Comments