Board index » delphi » update statement

update statement

Hi I have a Temporary  table ( #Temp ). My statement is
 select LastName, 0.00 as Amount
into #Temp
from Table1

This works fine.
Later I run an Update statement:
Update #Temp set Amount = 2.22

This returns an error message saying arithmetic overflow. I get this error
in both the idea of Delphi 6 and in SQL query analizer. Any ideas on what I
should do?

 

Re:update statement


Hi,

When inserting data into the #Temp table do the following:

Select LastName, convert(money,0.00) as Amount
into #Temp
from Table1

Update #Temp set Amount = 2.22

This would solve your problem

Regards

Quote
"David Gallaher" <dgalla...@quantum.ca> wrote in message

news:00Or7.12705$GQ2.1131944@news20.bellglobal.com...
Quote
> Hi I have a Temporary  table ( #Temp ). My statement is
>  select LastName, 0.00 as Amount
> into #Temp
> from Table1

> This works fine.
> Later I run an Update statement:
> Update #Temp set Amount = 2.22

> This returns an error message saying arithmetic overflow. I get this error
> in both the idea of Delphi 6 and in SQL query analizer. Any ideas on what
I
> should do?

Other Threads