Re: Storing Doubles in SQL
- From: "Dave Patrick" <DSPatrick@xxxxxxxxxxxxxxxx>
- Date: Sun, 11 Feb 2007 14:49:03 -0700
No, always use a data type that is equal. You can always use a type that is greater as well but you're possibly wasting storage space.
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
"naive14" wrote:
I can successfully read and write from/to sql using excel macros.
I have numbers in my work*** (currency and large numbers and fractions)
that I so far handle using "double" in my macros.
a) My basic question is what is the best way to store these values in my sql
database. Should I define a "Double" or "Float" field in my database or
should I define a "string" in my sql database.
b) since the sql text sent to the server is all text is it best or
neccessary to convert and format the Double to a String before using in a sql
command ?
.
- Follow-Ups:
- Re: Storing Doubles in SQL
- From: naive14
- Re: Storing Doubles in SQL
- Prev by Date: Re: ADO From Excel 2003 to a access.mdb Query
- Next by Date: Re: row movemwnt
- Previous by thread: Count & Sum Consecutive (2x) appearance of Specific Numeric Values
- Next by thread: Re: Storing Doubles in SQL
- Index(es):
Loading