ALTER PROCEDURE [dbo].[NST_InsertTblGenLedDet] @GHDHeader int, @Gldtype text, @GldAccount text, @GldDate DateTime, @GldVoucherType int, @GldDebit float=null, @GldCredit float= null, @GldDtaLine int= null AS DECLARE @ERR INT BEGIN TRANSACTION Insert into [TblGenLedDet] (GHDHeader,Gldtype,GldAccount,GldDate, GldVoucherType, GldDebit,GldCredit,GldDtaLine) values (@GHDHeader,@Gldtype,@GldAccount,@GldDate, @GldVoucherType, @GldDebit,@GldCredit,@GldDtaLine) SET @ERR = @@Error IF @ERR = 0 BEGIN COMMIT TRANSACTION END ELSE BEGIN ROLLBACK TRANSACTION RETURN @ERR END

I get this error again and again, although I specified the parameter name as @GldCredit, it shows the parameter name as parameter
source share