Thread: SSIS Date format problem
11-27-09, 00:36 #1Registered User
- Join Date
- Nov 2009
Unanswered: SSIS Date format problem
I have a big problem with an SSIS package. First of all it’s running on a windows server 2003, SQL server 2005 and Office 2003. The package is responsible for exporting data from a database to an excel sheet. There is a field date which has been converted in the format DD/MM/YYYY in the SQL. When I test the query in SQL server I got the right date format and also when I run the package via the SQL server business intelligent development studio.
However my problem is that when it is executed via xp_cmdshell in a stored procedure (called by an application), in the same Excel sheet I got date for some records in the format DD/MM/YYYY and other records MM/DD/YYYY.
Can such thing be resolved? Is there is bug somwhere
Please help its urgent
12-16-09, 19:11 #2(Making Your Life Easy)
Provided Answers: 10
- Join Date
- Feb 2004
- New Zealand
the only way I fix this problem was to format the date to dd - MMM - YYYY
make the month the month name excel will still see it as a date valuehope this help
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
THEY'RE BEHIND YOU FOR A REASON