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 

numric field problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
lwl
Guest





PostPosted: Wed Apr 14, 2004 2:02 am    Post subject: numric field problem Reply with quote



I'm using Delphi 5 and SQL Server 2000; my problem appeare when
posting data to a numric field from delphi using BDE and SQLlinks; rounding
some value happen with no reason (at least for me). here is some example
64.99 become 64.98
127.99 -> 127.98
I don't know why it is! I need help!


Back to top
Bill Todd (TeamB)
Guest





PostPosted: Wed Apr 14, 2004 3:20 am    Post subject: Re: numric field problem Reply with quote



You should use ADO, not the BDE, with SQL Server 2000.

The BDE SQL Links driver uses Microsoft's DBLIB client library which
Microsoft has not updated since SQL Server 6.5. One of the results is
that the BDE SQL Links driver treats numeric fields as floating point.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
quinn wildman
Guest





PostPosted: Wed Apr 14, 2004 5:56 pm    Post subject: Re: numric field problem Reply with quote



Setting enable bcd=true might resolve the problem.

lwl wrote:

Quote:
I'm using Delphi 5 and SQL Server 2000; my problem appeare when
posting data to a numric field from delphi using BDE and SQLlinks; rounding
some value happen with no reason (at least for me). here is some example
64.99 become 64.98
127.99 -> 127.98
I don't know why it is! I need help!




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.