What is a good mapping of .NET decimal to SQL Server decimal?

前端 未结 6 1306
清酒与你
清酒与你 2021-01-03 18:08

I am having to interface some C# code with SQL Server and I want to have exactly as much precision when storing a value in the database as I do with my C# code. I use one of

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-03 18:13

    This chart may help you.

    Maximum precision for numerics and decimals in SQL Server is 38 (see here).

提交回复
热议问题