Borland®
Shop
Products Downloads Services Support Partners News & Events Company Community
Company

 SQL LINKS DEVELOPER SUPPORT

SEARCH Borland Online/Developer Support

Tech Notes Index


Subject: Sybase raiserror from stored proc

HighLevel overview:
One possible cause of a Stored Proc not returning a raise error 
in Sybase System10, is the SYSDEPENDS table being 'corrupted'.

One possible cause of 'corruption':
Creating a storedprocedure1 that references a storedProcedure2 
that does not exist will cause System10 to create a 'phantom' 
entry in SYSDEPENDS that associates storedProcedure1 with
the non-existent storedProcedure2.  storedProcedure2 can be 
created at a later date, but for some reason, raiseErrors 
within storedProcedure1 will not work.

Solution:  Delete storedProcedure1 and recreate it after 
storedProcedure2 has been created.
Execute sp_recompile on one of the tables that is referenced 
within storedProcedure1.


PUB
SYB LINK ERROR
CJ


 
Site Map Search Contact