473,508 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ERROR: arithmetic overflow error converting expression to data type smalldatetime

1 New Member
this error occure while I am executing my query like:

Expand|Select|Wrap|Line Numbers
  1. select EMPNAME,A.EMPCODE,B.MACHINEID,EMPTYPE,PUNCHTIME,punchdate,sum(Amount)'Total Amount'  
  2. from B,A,C 
  3. where A.EMPCODE=C.empcode 
  4. and  C.machineid=B.machineid 
  5. and ( punchdate >=28/08/2012 and punchdate<=30/08/2012  )
  6. and ( punchtime>=08:00 and punchtime<=18:00 )
  7. and A.EMPCODE LIKE  '%'  
  8. group by EMPNAME,A.EMPCODE,B.MACHINEID,EMPTYPE,PUNCHTIME,PUNCHDATE
Apr 23 '14 #1
2 2020
Rabbit
12,516 Recognized Expert Moderator MVP
This is not VB.Net code. This is SQL code. Let us know what DBMS you're using and we will move it to the correct forum.

Please use code tags when posting code or formatted data.
Apr 23 '14 #2
Priyakara
1 New Member
This is related to the column in your database with smalldatetime.
so convert that when displaying the results.
Oct 10 '14 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1934
by: shank | last post by:
I got the following error: Arithmetic overflow error converting numeric to data type numeric I'm sure it was one of my currency fields. However, the real total of that column was $776.92 How did...
4
25231
by: Saso Zagoranski | last post by:
Hi! I have created an SqlCommand object and I have set some parameters to it... One of the parameters is of the DateTime type; here is the code: sqlCommand.Parameters.Value =...
1
4504
by: Sebastian Mark | last post by:
Did anyone got error like that? When I'm trying to Update WebReference in my project this is an error I'm getting "Custom tool error: Failed to generate dataset. Undefined data type:...
3
3241
by: psbasha | last post by:
Hi , When ever we read any data from file ,we read as a single line string ,and we convert the respective field data available in that string based on the data type ( say int,float ). ...
4
7590
by: darrel | last post by:
I'm getting this error: Arithmetic overflow error converting numeric to data type numeric. Triggered on this line of my code: objOleDbAdapter.Fill(DS, "rss") Everything works when this is...
1
18825
by: sonata | last post by:
I am trying to compare two fields which are char data typr. BUT the comparision must be arithemetic in nature. so i tried to cast both the data base field and my parameter field to big int...
2
12632
by: Hulikal | last post by:
Hi, I using the following query select dateadd(s, 1185255439727, '01-01-1970 05:30:00') on MSSQL 2005. I get the error Arithmetic overflow error converting expression to data type...
2
2580
by: AngieMP | last post by:
Hi Guys I have inherited an Access DB in a very poorly state! I have offered to make some changes to it for a local charity but have got stuck on this error it seems to be creating for all new...
3
4278
syedshaffee
by: syedshaffee | last post by:
Hey People, I'm Getting "arithmetic overflow error converting expression to data type int" While Updating And Deleting Please Look @ the Following Attachment Below And This...
0
7226
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.