我在执行C中的存储过程时出错 [英] i got a error to executing the store procedure in c #

查看:75
本文介绍了我在执行C中的存储过程时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

传入的表格格式数据流(TDS)远程过程调用(RPC)协议流不正确.参数8("@ParamName"):提供的值不是数据类型为数字的有效实例.检查源数据中的无效值.


消除此错误的解决方案是什么?

Dhammaratna

The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 8 ("@ParamName"): The supplied value is not a valid instance of data type numeric. Check the source data for invalid values.


what is the solution to remove this error ?

Dhammaratna

推荐答案

MSDN上有一个漂亮的图表,显示了如何将SqlDbType映射到CLR类型: ^ ].从该页面可以获取的内容SqlDbType.Numeric通过CLR类型Decimal或Nullable< Decimal>进行匹配.
希望对您有帮助!

问候,

曼弗雷德(Manfred)
There is a nice chart on MSDN that shows how to map SqlDbTypes to CLR types: Mapping CLR Parameter Data[^]. From what can be garnered from that page SqlDbType.Numeric is matched by the CLR type Decimal or Nullable<Decimal>.

Hope that will help you!

Regards,

Manfred


这篇关于我在执行C中的存储过程时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆