Solved

sql 2005 datetime overflow

Posted on 2013-01-28
3
541 Views
Last Modified: 2013-01-29
How to get rid of the error

SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM.

I'm using SQL Server 2005 and ASP.net / C#.

Thanks.
0
Comment
Question by:minglelinch
3 Comments
 
LVL 35

Assisted Solution

by:Miguel Oz
Miguel Oz earned 250 total points
ID: 38829027
What action (C# - select, insert, etc) are you trying to do?
One possible cause of overflow error is to pass an uninitialised DateTime with the value DateTime.MinValue which is outside the allowable range for SQL's datetime. (E.g. when inserting new row(s) - possible solution use default date time value)
Check:
http://stackoverflow.com/questions/1226863/system-data-sqltypes-sqltypeexception-sqldatetime-overflow
0
 
LVL 10

Accepted Solution

by:
Monica P earned 250 total points
ID: 38829904
0
 
LVL 1

Author Closing Comment

by:minglelinch
ID: 38831254
Thanks for the answers.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now