944,076 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1402
  • ASP.NET RSS
Nov 6th, 2009
0

SqlDateTime Overflow Error

Expand Post »
Hii...

I'm having 2 .aspx page
1) Detected Vulnerabilities Report
2) Missing Patches Summary Report

When I'm clicking on Detected Vulnerabilities Report it is executing fine and after when Im clicking on Missing Patches Summary Report it is also executing fine. For both of this report Im passing 2 parameters, (startdate and enddate) and between this range the report data will display...

After When I'm restarting my application again and now when Im clicking on Missing Patches Summary Report it is showing an error message as 'SqlDatetime overflow. Must be between 01/01/1753 12:00:00 am and 12/31/9999 11:59:59 pm.

I've created a TableAdapters for Missing Patches Summary report and Im calling this adapter in .cs class of this report...

Need help on this....


Thanx...
Similar Threads
Reputation Points: 9
Solved Threads: 0
Newbie Poster
Abhishek_Boga is offline Offline
20 posts
since Feb 2009
Nov 7th, 2009
0
Re: SqlDateTime Overflow Error
You need to post the queries that are causing this error. Also you need to check any DateTime values you send to the SQL Server:
c# Syntax (Toggle Plain Text)
  1. public static bool SqlTypeInRange(DateTime value)
  2. {
  3. return ((value <= System.Data.SqlTypes.SqlDateTime.MaxValue.Value) && (value >= System.Data.SqlTypes.SqlDateTime.MinValue.Value));
  4. }
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009
Nov 9th, 2009
0
Re: SqlDateTime Overflow Error
Its working.... Thanxx sknake..
Reputation Points: 9
Solved Threads: 0
Newbie Poster
Abhishek_Boga is offline Offline
20 posts
since Feb 2009
Nov 10th, 2009
0
Re: SqlDateTime Overflow Error
You're welcome

Please mark this thread as solved if you have found a solution to your issue and good luck!
Featured Poster
Reputation Points: 1749
Solved Threads: 735
Senior Poster
sknake is offline Offline
3,948 posts
since Feb 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: programmaticly alter the command text of a sqldatasource???anyone?
Next Thread in ASP.NET Forum Timeline: how to enlarge the image





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC