Symptom
A query using datediff fails with error 535 "Difference of two datetime fields caused overflow at runtime"
Example:
Select * from mytable where datediff(ms,startDate,endDate)> 60000
Read more...
Environment
- SAP Adaptive Server Enterprise 16.0
- SAP Adaptive Server Enterprise 15.7
- SAP Adaptive Server Enterprise 12.5
- SAP Adaptive Server Enterprise 16.0 Cluster Edition
- SAP Adaptive Server Enterprise 15.7 Cluster Edition
Product
SAP Adaptive Server Enterprise 12.5 ; SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 15.7 Cluster Edition ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise 16.0 Cluster Edition
Keywords
sybase, datediff, overflow, 535, difference, datepart , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , BC-SYB-ASE-CE , ASE Cluster Edition (Standalone) , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.