Sybase Adaptive Server Enterprise 15.0.2 Installation Manual page 126

Table of Contents

Advertisement

Upgrading compiled objects with dbcc upgrade_object
Temporary table references
select * potential problem areas
112
If quoted identifier errors occur, use the
, and then run
identifiers
For compiled objects created in version 11.9.2 or later, the upgrade process
automatically activates or deactivates quoted identifiers as appropriate.
Quoted identifiers are not the same as literals enclosed in double quotes.
Note
The latter do not require you to perform any special action before the upgrade.
If a compiled object such as a stored procedure or trigger refers to a temporary
table (#temp table_name) that was created outside the body of the object, the
upgrade fails, and
dbcc upgrade_object
create the temporary table exactly as expected by the compiled object, then
execute
dbcc upgrade_object
is upgraded automatically when it is invoked.
In Adaptive Server version 11.9.3 and later, the results of a
stored procedure, trigger, or view that was created in an earlier version of
Adaptive Server may be different from what you expect.
For more information about the changes, see the Reference Manual.
If
dbcc upgrade_object
stored procedure, it returns an error, and does not upgrade the object.
For example, consider the following stored procedures:
create procedure myproc as
select * from employees
go
create procedure yourproc as
if exists (select * from employees)
print "Found one!"
go
returns an error on
dbcc upgrade_object
statement with a
select *
not upgraded.
does not return an error on
dbcc upgrade_object
clause occurs in a subquery. This procedure is upgraded.
command to activate
set
dbcc upgrade_object
returns an error. To correct this error,
again. You need not do this if the compiled object
finds a
clause in the outermost query block of a
select *
myproc
clause in the outermost query block. This procedure is
quoted
to upgrade the object.
select *
because
includes a
myproc
because the
yourproc
Adaptive Server Enterprise
clause in a
select *

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents