3

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

2 Answers 2

6

Decimal.

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

Sign up to request clarification or add additional context in comments.

1 Comment

Note that the above link shows SqlType mappings, not SqlDbType, although in this case the mapping is the same, NUMERIC to Decimal. Here are the full mappings: msdn.microsoft.com/en-us/library/cc716729.aspx
5

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.