R
Roberto Kohler
I am trying to use a stored procedure to update a row in a Gridview but I
get the error
"Procedure or function sc_updDEPT has too many arguments specified"
The Stored procedure takes 3 parameters "sc_updDEPT @idplant, @iddept,
@deptname"
I configured the SqlDataSource to use the sc_updDEPT StoredProcedure for
updates:
UpdateCommand="sc_updDEPT"
UpdateCommandType="StoredProcedure"
ConflictDetection="CompareAllValues"
<UpdateParameters>
<asp
arameter Name="idplant" Type="Int32" />
<asp
arameter Name="iddept" Type="String" />
<asp
arameter Name="deptname" Type="String" />
</UpdateParameters>
The Primary Key in the table is "idplant, iddept"
In the Gridview I set
DataKeyNames="idplant, iddept"
When I try to do the update I get the error
Exception Details: System.Data.SqlClient.SqlException:
Procedure or function sc_updDEPT has too many arguments specified.
Any help would be appreciated
get the error
"Procedure or function sc_updDEPT has too many arguments specified"
The Stored procedure takes 3 parameters "sc_updDEPT @idplant, @iddept,
@deptname"
I configured the SqlDataSource to use the sc_updDEPT StoredProcedure for
updates:
UpdateCommand="sc_updDEPT"
UpdateCommandType="StoredProcedure"
ConflictDetection="CompareAllValues"
<UpdateParameters>
<asp
<asp
<asp
</UpdateParameters>
The Primary Key in the table is "idplant, iddept"
In the Gridview I set
DataKeyNames="idplant, iddept"
When I try to do the update I get the error
Exception Details: System.Data.SqlClient.SqlException:
Procedure or function sc_updDEPT has too many arguments specified.
Any help would be appreciated