我试图使用ASP detailsview将变量传递给MSSQL存储过程,然后将值插入到多个表中.当我在SQL Management Studio中运行它时,存储过程非常有效.我将所有存储过程的变量设置为参数,但是当我的ASP页面运行时,我仍然收到错误(下面).我的ASP代码和存储过程也包含在错误消息下面.
任何帮助将不胜感激.这个问题开始变得非常令人沮丧.
错误信息:
Server Error in '/PrinterUsage' Application.
Procedure or function Add_Count_By_Name has too many arguments specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Procedure or function Add_Count_By_Name has too many arguments specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding …Run Code Online (Sandbox Code Playgroud)