SqlDbType enumeration mapping - C#

2019-07-01 11:07发布

问题:

What value in the SqlDbType enumeration should I use for the numeric T-SQL data type?

回答1:

Decimal.

See this page: http://msdn.microsoft.com/en-us/library/system.data.sqltypes.aspx



回答2:

I'm pretty sure that SqlDbType.Decimal is the closest.

  • SQL Server Data Type Mappings