Thursday, June 24, 2010

Excel thinks 1900 was a Leap Year, SSIS knows it was NOT


Evidently, the year 1900 is not technically a leap year. See this How Stuff Works article to learn why (if you care).

Well I was trying to import a file with dummy dates that had been created in Excel 2007. The dummy dates had been created automatically and Excel had inserted a Feb 29, 1900.

SSIS knows better. It rejected the invalid Feb 29, 1900 date.

My file was a stop-gap until I got full access to my real data source so I just manually changed the records that were marked Feb 29, 1900. I don't know what you are going to do with your file!

No comments: