Decimal passed incorrectly from C# to SQL Server with TableAdapters

前端 未结 1 1279
星月不相逢
星月不相逢 2021-01-22 03:40

Yesterday I noticed an odd behaviour when using TableAdapters, for some reason when passing a decimal < 0.1 it makes it into an integer. For example if I pass 1.0123, I can s

相关标签:
1条回答
  • 2021-01-22 04:39

    This appears to be a display bug in SQL Profiler when the TextData column is not included in the trace and the text of the RPC command is reconstructed from another source (presumably BinaryData).

    I followed your steps and was able to repo on SQL 2008 R2 using a default trace in SQL profiler.

    However, when the trace properties are changed to include the TextData column for RPC:Completed, the correct command is displayed.

    enter image description here

    0 讨论(0)
提交回复
热议问题