简体   繁体   English

Microsoft SQL Server 2005

[英]microsoft SQL server 2005

While running a procedure it gives error like Insert Error: Column name or number of supplied values does not match table definition. 在运行过程时,它会出现类似“插入错误”的错误:列名或提供的值数与表定义不匹配。 But when I run same set of queries without any procedure it run fine. 但是,当我运行相同的查询集而没有任何过程时,它运行良好。 Can someone tell me what 's the problem 有人可以告诉我这是什么问题

I'm going to guess that your stored procedure is asking for a certain set of parameters, but you are supplying a different set of arguments. 我将猜测您的存储过程正在请求一组特定的参数,但您提供的是一组不同的参数。 When you call the stored procedure, make sure any arguments given are correct for what is expected. 当您调用存储过程时,请确保给定的任何参数都与预期的正确。

Either that or the stored procedure itself has an error trying to talk to a database table and getting the schema wrong. 要么该存储过程本身出现错误,要么尝试与数据库表进行对话并弄错了模式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM