Solved

sql 2005 datetime overflow

Posted on 2013-01-28
3
538 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

18 Experts available now in Live!

Get 1:1 Help Now