Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Date Format issue
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

95 Posts

Posted - 03/13/2013 :  08:56:02  Show Profile  Reply with Quote
Hi All,

Currently my session setting is mdy

what all are formats are valid as per my session setting?
i tried with
01-31-2013 (mm-dd-yyyy) valid (make sense)
31-01-2013 (throws arithmetic overflow error) (make sense) because there is no 31st month.

But when i tried with 2013-01-31 it is returning result
and when i tried with 2013-31-01 it is throwing over flow error message.

How sql server intrepets this date based on session setting?



Very Important crosS Applying yaK Herder

52326 Posts

Posted - 03/13/2013 :  10:10:29  Show Profile  Reply with Quote

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000