I use the following code to call my stored procedure using TADOStoredProc
type
MySP.Connection := aConnection;
MySP.ProcedureName := 'dbo.UpdateErrors';
MySP.Parameters.ParamByName('@Error_Number').value := -1;
MySP.Parameters.ParamByName('@NewError_Name').value := 'errorM1';
MySP.Parameters.Refresh;
MySP.ExecProc;
The parameter @Error_Number
is part of the stored procedure UpdateErrors
using SQL Server Management Studio, I add snip image for confirmation
but I can't understand why I get an error