Office中国论坛/Access中国论坛

标题: 编译好的存储过程,调试时出错。帮帮我 [打印本页]

作者: huangliu    时间: 2002-11-21 07:44
标题: 编译好的存储过程,调试时出错。帮帮我
调试时的错误信息:[Microsoft][ODBC SQL Server Driver]对于造型说明无效的字符值

**********
CREATE       Procedure S004IU01
        @idPayed int output,
        @dDatePay smallDatetime,
        @sCustomer nvarchar(30),
        @idCurrency tinyint,
        @idPayType tinyint,
        @Remark nvarchar(50)
As
If @idPayed=-1
    Begin
        insert into payed(DatePay,customer,idCurrency,idPayType,Remark)
        values(@dDatePay,@sCustomer,@idCurrency,@idPayType,@Remark)
        Select @idPayed=@@identity
    End
else
    Update Payed Set DatePay=@dDatePay,Customer=@sCustomer,idCurrency=@idCurrency,
    idPayType=@idPayType,Remark=@Remark Where idPayed=@idPayed




欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) Powered by Discuz! X3.3