Should I use SQL data type money or decimal given .NET datatype is decimal?
- From: "Ronald S. Cook" <rcook@xxxxxxxxxxxx>
- Date: Fri, 13 Apr 2007 22:23:45 -0600
We're designing the data model for a project. The app will be in .NET, the
database will be in SQL Server 2005.
I'm a little confused on type conversion between the two and which I should
choose.
I found this good comparison chart:
http://msdn2.microsoft.com/en-us/library/ms131092.aspx
But for monetary amounts, it looks like decimal is how .NET is going to
store the value. So then, should I go with decimal in the database for a
nice match? But then it looks like money would be a good choice.
How do I know which I should ideally choose?
It would be nice if all the types exactly matched up between the platforms.
Thanks,
Ron
.
- Follow-Ups:
- Re: Should I use SQL data type money or decimal given .NET datatype is decimal?
- From: Ronald S. Cook
- Re: Should I use SQL data type money or decimal given .NET datatype is decimal?
- Prev by Date: Re: Cool Interview questions for dot net developers
- Next by Date: C# Windows Form ListView concept
- Previous by thread: my own forum free?
- Next by thread: Re: Should I use SQL data type money or decimal given .NET datatype is decimal?
- Index(es):
Relevant Pages
|