0

SybaseErrorProcess每当我运行以下过程时,我都会收到:

CREATE PROC stdCont(@Cpty_Id INTEGER,  @TradeDate DATETIME) AS
BEGIN
    CREATE TABLE Ktest..FwdCont
    (Txn_No NUMERIC(10) IDENTITY, Deals_Id INTEGER NULL, Amount FLOAT NULL,OptionDate DATETIME NULL)

    insert into Ktest..FwdCont (Deals_Id ,Amount  ) (select Deals_Ids,amt from Ktest..trans)
    Update Ktest..FwdCont Set OptionDate = @TradeDate Where Deals_Id = @Cpty_Id

    select bk.tnxno,bk.bk.dealid ,fd.OptionDate ,fd.Amount    from Ktest..bakwnd bk ,Ktest..FwdCont fd where bk.dealid=fd.Deals_Id  and bk.op_date=fd.OptionDate

    DROP TABLE Ktest..FwdCont 
end 

错误日志如下

number(2714) severity(16) state(1) line(9)
Connection Id:920 [raj@PROD-plus]
Server PLUS_ser
Procedure stdCont
Message string There is already an object named 'FwdCont' in the database.


*** Error(Fri 26 Jul 2013 - 18:21:54): SybaseErrorProcess

BEGIN SQL-REQUEST:
Ktest..stdCont 71495,  "07/25/2013"
END SQL-REQUEST


*** Error(Fri 26 Jul 2013 - 18:21:54):
Cannot perform your action:
Server Message:
         number(12336) severity(16) state(1) line(40)
        Connection Id:920 [raj@PROD-plus]
Server PLUS_ser
Procedure stdCont
Message string Definition time object 'database 'Ktest' (5), object 'FwdCont' (1974935499)' found at run time as an attempt to drop the table had failed i
n a previous query. Please drop the above mentioned table using the DROP TABLE c
ommand.

*** Error(Fri 26 Jul 2013 - 18:21:54): SybaseErrorProcess

BEGIN SQL-REQUEST:
Ktest..stdCont 71495,  "07/25/2013"
END SQL-REQUEST

*** Error(Fri 26 Jul 2013 - 18:21:54):
Cannot perform your action:
Server Message:
         number(12336) severity(16) state(1) line(40)
        Connection Id:920 [raj@PROD-plus]
Server PLUS_ser
Procedure stdCont
Message string Definition time object 'database 'Ktest' (5), object 'FwdCont' (1974935499)' found at run time as an attempt to drop the table had failed i
n a previous query. Please drop the above mentioned table using the DROP TABLE c
ommand.


*** Error(Fri 26 Jul 2013 - 18:21:54): SybaseErrorProcess

BEGIN SQL-REQUEST:
Ktest..stdCont 71495,  "07/25/2013"
END SQL-REQUEST

*** Error(Fri 26 Jul 2013 - 18:21:54):
Cannot perform your action:
Server Message:
         number(12336) severity(16) state(1) line(40)
        Connection Id:920 [raj@PROD-plus]
Server PLUS_ser
Procedure stdCont
Message string Definition time object 'database 'Ktest' (5), object 'FwdCont' (1974935499)' found at run time as an attempt to drop the table had failed i
n a previous query. Please drop the above mentioned table using the DROP TABLE c
ommand.

*** Error(Fri 26 Jul 2013 - 18:21:54): SybaseErrorProcess

BEGIN SQL-REQUEST:
Ktest..stdCont 71495,  "07/25/2013"
END SQL-REQUEST


*** Error(Fri 26 Jul 2013 - 18:21:54):
Cannot perform your action:
Server Message:
         number(12336) severity(16) state(1) line(40)
        Connection Id:920 [raj@PROD-plus]
Server PLUS_ser
Procedure stdCont
Message string Definition time object 'database 'Ktest' (5), object 'FwdCont' (1974935499)' found at run time as an attempt to drop the table had failed i
n a previous query. Please drop the above mentioned table using the DROP TABLE c
ommand.

*** Error(Fri 26 Jul 2013 - 18:21:54):
Cannot perform your action:
Server Message:
         number(11060) severity(16) state(1) line(40)
        Connection Id:920 [raj@PROD-plus]
Server PLUS_ser
Procedure stdCont
Message string This statement has exceeded the maximum number of recompilations
(10). This indicates an internal error. Please note the error prior to this one
and contact Sybase Technical Support.

也许这是一个僵局?

4

1 回答 1

0

信息很明确!

您的数据库中已经有了该FwdCont表,这可能是因为您的存储过程执行过旧。

于 2013-07-27T06:46:57.810 回答