dbTalk Databases Forums  

Date transforms from dd/mm/yyyy to mm/dd/yyyy - why?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Date transforms from dd/mm/yyyy to mm/dd/yyyy - why? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sean
 
Posts: n/a

Default Date transforms from dd/mm/yyyy to mm/dd/yyyy - why? - 03-08-2006 , 02:55 PM






Hi all,

I'm loading some tables via DTS with the input files being comma
delimited .txt files.

For 2 date fields (format =smalldatetime in sql) if I pass a value of:

"14/10/1980" it stores as 1980-10-14 which is correct.

But if I pass a value of:

"07/11/1980" it stores a value of 1980-07-11 when it should be
1980-11-07

Any ideas on this?

Thanks,
Sean




Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Date transforms from dd/mm/yyyy to mm/dd/yyyy - why? - 03-09-2006 , 03:21 PM






Hello Sean,

The way I look at these types of problem is I look at the

Language of the user doing the execution in SQL Server Logins
The Language of the Server on which SQL Server is hosted


These two things matter with date translations. When i cannot resolve things
using this or I do not have time to do it I turn to this

http://www.sqldts.com/default.aspx?249

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi all,

I'm loading some tables via DTS with the input files being comma
delimited .txt files.

For 2 date fields (format =smalldatetime in sql) if I pass a value of:

"14/10/1980" it stores as 1980-10-14 which is correct.

But if I pass a value of:

"07/11/1980" it stores a value of 1980-07-11 when it should be
1980-11-07

Any ideas on this?

Thanks,
Sean



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.