View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
naive14 naive14 is offline
external usenet poster
 
Posts: 10
Default Storing Doubles in SQL

I can successfully read and write from/to sql using excel macros.

I have numbers in my worksheet (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 ?