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 

DECIMAL(20) x BDE 5.01?

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





PostPosted: Wed Aug 27, 2003 2:52 pm    Post subject: DECIMAL(20) x BDE 5.01? Reply with quote



Hello All,

Can i use datatype DECIMAL(20) with BDE 5.01?
In fact, i had success using this datatype in MS SQL Server, but i'm having
problems with BDE, 'cause the column comes truncate.

--
Regards
Anderson Haertel Rodrigues



Back to top
Anderson Haertel Rodrigue
Guest





PostPosted: Wed Aug 27, 2003 4:20 pm    Post subject: Re: DECIMAL(20) x BDE 5.01? Reply with quote



"John Herbster (TeamB)" <herb-sci1_at_sbcglobal.net> escreveu na mensagem
news:3f4cd343 (AT) newsgroups (DOT) borland.com...
Quote:
Anderson,
What variable type would you use on the Delphi side to give that much
resolution? Max Int64 is only about 9.2^18.

Ok.

Quote:
If you really need it, can you handle it via strings, or can you break it
down with SQL into two fields of say DECIMAL(10) with div and mod functions?

My solution create datatype Varchar(20). Today, using Decimal(16) "Primary
Key", but, need add more 04 digits.

Thanks John!

Anderson





Back to top
John Herbster (TeamB)
Guest





PostPosted: Wed Aug 27, 2003 6:07 pm    Post subject: Re: DECIMAL(20) x BDE 5.01? Reply with quote




"Anderson Haertel Rodrigues" <ahr (AT) noemail (DOT) com> wrote
Quote:
My solution create datatype Varchar(20). Today, using Decimal(16) "Primary Key", but, need add more 04 digits.

Does it represent anything more than a key?
I.E. do you do any arithmetic on it?
Can you split it into two PK fields.
Which Delphi and which database are you using?
Can you use the TBCD type?
(I don't know if BDE knows about TBCD.)
Regards, JohnH


Back to top
Anderson Haertel Rodrigue
Guest





PostPosted: Thu Aug 28, 2003 8:08 pm    Post subject: Re: DECIMAL(20) x BDE 5.01? Reply with quote

John,

"Anderson Haertel Rodrigues" <ahr (AT) noemail (DOT) com> wrote
Quote:
My solution create datatype Varchar(20). Today, using Decimal(16) "Primary
Key", but, need add more 04 digits.


Quote:
Does it represent anything more than a key?
No. Represent only more PK. Severals FK....


Quote:
I.E. do you do any arithmetic on it?
Can you split it into two PK fields.
Ok...but, impact in Application Delphi more BIG! (Forms, Reports, SELECTs)


Quote:
Which Delphi and which database are you using?
Delphi 4.0, BDE 5.01 and MS SQL Server 7.0


Regards.
Anderson




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.