CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft OLE DB Provider for SQL Server error '80040e57' Difference of two datetime columns caused overflow at runtime.
- Article ID:
151 - Date Created
Thursday, December 15, 2011 - Last Updated
Thursday, December 15, 2011 - This Article Has been Viewed
2368 times - Short Desc
If you set your datetime column incorrectly for the sql statement that you are trying to use, you will receive this error. - Details
using the DATEDIFF() function, with a datetime stamp, that is incorrectly formatted, will cause the following error.
Microsoft OLE DB Provider for SQL Server error '80040e57'
Difference of two datetime columns caused overflow at runtime.
/NewInsert.asp, line 110 - Recreate Issue
To recreate this issue.
In your SQL Server database column
MyDate = (((1)/(1)/(1900)) - Resolve Issue
To correct this issue.
MyDate = (getdate())
Using the following code, with the above statement within your SQL Server column, for your datetime Data Type, you should be good to go.<%
sql.commandtext="DATEDIFF(s, MyDate, CONVERT(VARCHAR(26), GETDATE(), 109)) as timestamp"
%>
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24695
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21297
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19544
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17785
- The backup set holds a backup of a database other than the existing 16825