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
 Script Library
 fwd : Datetime error in sql server
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

8 Posts

Posted - 11/08/2012 :  04:14:54  Show Profile  Reply with Quote

the conversion of a varchar data type to a datetime data type resulted in an out-of-range value.

This error is coming in Sql when i was trying to get the date which is in the format '1998-12-10-'

kindly give me solution how it formats and give correct output.

Thank you..


In (Som, Ni, Yak)

17689 Posts

Posted - 11/08/2012 :  04:45:11  Show Profile  Reply with Quote
should be just
'1998-12-10 12:18:35.535'

Time is always against us

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.02 seconds. Powered By: Snitz Forums 2000