BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

delphi2006 clientdataset cannot return correct value. why?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
ronger xu
Guest





PostPosted: Wed Jan 25, 2006 3:26 pm    Post subject: delphi2006 clientdataset cannot return correct value. why? Reply with quote



clientdataset connected to provider

clientdataset1.commandtext := 'select count(*) cnt from tablename';
clientdataset1.open;
showMessage(clientdataset1.fieldbyName('cnt').asString);


!!
it returns 0.
but there are 6000 records. in the table!

Why ?
thanks a lot.


Back to top
Dan Miser
Guest





PostPosted: Wed Jan 25, 2006 5:43 pm    Post subject: Re: delphi2006 clientdataset cannot return correct value. wh Reply with quote



Tied to a CoreLab MSSQL driver perhaps? Either way, double check the
precision of the returned count() from your DBMS. You may need to CAST this
to something like (32,Cool for the time being. It's a FMTBCD bug that is being
looked at.
--
Dan Miser
http://www.distribucon.com

"ronger xu" <lirox (AT) msn (DOT) com> wrote

Quote:
clientdataset connected to provider

clientdataset1.commandtext := 'select count(*) cnt from tablename';
clientdataset1.open;
showMessage(clientdataset1.fieldbyName('cnt').asString);


!!
it returns 0.
but there are 6000 records. in the table!

Why ?
thanks a lot.




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.