Page 1 of 1

Access violation with sentences with SUM statement

Posted: Tue 27 Sep 2005 19:05
by carl_rod
Hello,

Actually I´m having a problem with the DBExpress driver for MS SQL 2.50.4.0 ( I already try the newest version).

When I try to open a dataset that include a SUM statement, the corresponding field to the SUM column, reports an access violation error accesing the property "IsNull".

What is the problem ?? I'm using CBuilder 6.0 over Windows 2000

Posted: Wed 28 Sep 2005 07:06
by Ikar
We couldn't reproduce the problem.
Please send us (dbxsda*crlab*com) a complete small sample to demonstrate it and include script to create and fill table.

Posted: Fri 30 Sep 2005 09:50
by Ikar
As before, we couldn't reproduce the problem.
Please try to connect to this server from other PC.
Also find sqloledb.dll on your PC and send us its version, 2000.80.190.0 for example

dbx can't evaluate sum fields

Posted: Wed 30 Nov 2005 09:04
by deldev
I had the same problem in cascaded SQLQueries.
2 Sum fields always returned 0 as value.

It costs me hours.

I think dbx can't get the fieldtype of sum aggregate.

if your only working with ms sql server I have a simple sql workaround:

:idea:
replace : select sum(a) as a from t
with : select convert(decimal(14,2), sum(a)) as a from t

regards