Solved

sql 2005 datetime overflow

Posted on 2013-01-28
3
553 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 36

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Blending HTML output from R Studio into a ASP.Net/C# project 4 49
CSS question 16 62
Windows Universal App 22 58
SQL Server 2005 running VERY slowly on new hardware 22 60
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

732 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