SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Date Format Problem with SQL SERVER ENGLISH VERSION


Date Format Problem with SQL SERVER ENGLISH VERSION

Author
Message
abdielmomo
abdielmomo
Grasshopper
Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)

Group: General Forum Members
Points: 17 Visits: 76
Please, I have installed SQL SERVER 2008 R2 Standard Edition English Language. The Collation of the server is : French_CI_AS. I have restored my database. The collation of my database is SQL_Latin1_General_CP1_CI_AS. I have observed that all the dates are treated with the format MM/DD/YYYY. And this format is not compatible with my application Software. For example, when i want to visualize the report of March ( from '01/03/2013' To '31/03/2013') the application send me this error “The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.” Another example, When i execute this query in the query analyzer "Update Cloture_Chiffre set Date_cloture='28/02/2013'" I receive the same error message. I did not have this error when the application Software was running on sql server 2008 R2 FRENCH EDITION. Please what can i do to change this situation so that sql server will treat all the dates with the format DD/MM/YYYY; so that this command "Update Cloture_Chiffre set Date_cloture='28/02/2013'" (28 FEBRUARY 2013) could work.
Thanks a lot in advance.
patrickmcginnis59 10839
patrickmcginnis59 10839
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1770 Visits: 5520
Maybe give SET DATEFORMAT a try:

http://msdn.microsoft.com/en-us/library/ms189491.aspx

to properly post on a forum:
http://www.sqlservercentral.com/articles/61537/
abdielmomo
abdielmomo
Grasshopper
Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)Grasshopper (17 reputation)

Group: General Forum Members
Points: 17 Visits: 76
It's a solution I needed.
Thank you very much
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search