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!

Tuesday, June 22, 2010

Run a Batch File from an SSIS Execute Process Task

Took me a bit of head banging to figure this out so I wanted to share. If you want to run a batch file from an SSIS Execute Process task you do not put the batch file name as the Executable property (though I think that seems to most logical at first blush). Instead you put cmd.exe as the Executable and pass the name and location of your batch file in as an argument.