Decimal datatypes as 'money' (currency) in ADO.NET?



Hi All,

I'm developing an application that needs to put 'money' (currency) values
into ANY OF Access, MS-SQL Server, and/or Oracle databases. Because they
all
have their own way of supporting 'Money' and .NET only gives us the
'System.Decimal' datatype to work with I am at a loss...

So far I've used the "System.<datatype>" compatible datatypes under .NET,
and let ADO.NET convert to the database of choice. SO, "System.Decimal" is
what I've been using for 'Money' (but each database type use something other
than 'decimal' for currency values, Access: 'Money' or 'Number', MS-SQL
Server: 'Money' or 'Decimal'...).

The problem is... I don't see how to specify the 'fractional' precision of
the Decimal value through ADO.NET.

Through ADO... how do I create the Column Schema parameters for a Decimal?
Do I set a database column up as a 'Money' or 'Number' value and set it's
internal parameters at the database-level (and let ADO use 'Decimal', hoping
it will all convert OK)?

I'm just trying to find the most compatible way to handle ADO sending
currency values to a variety of database types without getting too 'manual'
about it.

Any help is appreciated,

SteveH


.



Relevant Pages

  • Earn good money from home - an opportunity for Indians
    ... THIS CAN REALLY MAKE YOU EASY MONEY! ... it said that you send Rs.10 to the Main Database Address stated ... KHAMMAM - A.P-- INDIA. ... postal mail/courier with money to the main member and to the other 5 up ...
    (sci.med.transcription)
  • HOME BASED JOB OPPORTUNITY - MAKE MILLIONS (only for Indians)
    ... THIS CAN REALLY MAKE YOU EASY MONEY! ... it said that you send Rs.10 to the Main Database Address stated ... post the article in at least 200 newsgroups. ... postal mail/courier with money to the main member and to the other 5 up ...
    (soc.culture.indian)
  • Re: HOME BASED JOB OPPORTUNITY - MAKE MILLIONS (only for Indians)
    ... THIS CAN REALLY MAKE YOU EASY MONEY! ... it said that you send Rs.10 to the Main Database Address stated ... post the article in at least 200 newsgroups. ... postal mail/courier with money to the main member and to the other 5 up ...
    (sci.med.transcription)
  • BECOME A MILLIONAIRE WITH INVESTMENT OF Rs.60/- in INDIA
    ... Become a millionaire with very low investment Of Rs. ... Anybody will think twice before investing their hard earned money in ... Rs.10 to the Main Database Address stated below and to each of the ... post your amended article to minimum 200 newsgroups. ...
    (misc.fitness.weights)
  • Earn millions in India by investing a measly Rs. 60/-
    ... Become a millionaire with very low investment Of Rs. ... Anybody will think twice before investing their hard earned money in ... Rs.10 to the Main Database Address stated below and to each of the ... post your amended article to minimum 200 newsgroups. ...
    (rec.crafts.metalworking)