存储过程有问题 [英] Stored procedure have some problem

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

问题描述

我正在使用存储过程来插入,更新和检索数据.
有时它显示出意外的错误.首先,它可以正常运行,但是我认为我需要修复一些设置.
它显示诸如过程或函数声明了太多参数"之类的错误未提供@日期"之类的.
我该如何解决?

I am using a stored procedure for insertion, updation, retrieval of data.
Sometimes it is showing unexpected errors. First it works smoothly, but I think I need to fix some settings.
It is showing errors like "Procedure or function declares too many arguments", "@Date is not supplied".
How can i solve it ?

推荐答案

参数 name value 的第一个检查编号是否相同.
第二次检查您是否提供了参数名称(在调用sp时从应用程序发送的参数名称),该名称必须与SP参数名称(在您提供SP的名称时提供的名称相同).
First check number of parameter name and value is same or not.
Second check you provided parameter name (which you sending from your application at the time of calling sp), it must be same as SP parameter name (check you have provide @).


这篇关于存储过程有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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