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
尽管我已将参数名称指定为@GldCredit,但我一次又一次地收到此错误,它显示参数名称为 Parameter1