Sybase Adaptive Server Enterprise 15.0.2 Installation Manual page 128

Table of Contents

Advertisement

Upgrading compiled objects with dbcc upgrade_object
Examples
114
– specifies the database ID. If you do not specify
dbid
objects in the current database are upgraded.
– specifies the database name. If you do not specify
dbname
compiled objects in the current database are upgraded.
compiled_object_name
want to upgrade. If you use the fully qualified name,
must match, and you must enclose the fully qualified name in quotes. If
the database contains more than one compiled object of the same name,
use the fully qualified name. Otherwise, all objects with the same name are
parsed, and if no errors are found, upgraded.
– upgrades all check constraints and rules. Referential constraints
check
are not compiled objects and do not require upgrading.
– upgrades all declarative defaults and the defaults created with the
default
command.
create default
– upgrades all stored procedures.
procedure
– upgrades all rules and check constraints.
rule
– upgrades all triggers.
trigger
– upgrades all views.
view
The keywords
check
classes of compiled objects to be upgraded. When you specify a class, all
objects in that class, in the specified database, are upgraded, provided that
dbcc upgrade_object
specifies that you want to upgrade the specified object even if it
force
contains a
select *
the
statement will not return unexpected results. The
select *
does not upgrade objects that contain reserved words, contain truncated or
missing source text, refer to nonexistent temporary tables, or do not match
the quoted identifier setting. You must fix these objects before they can be
upgraded.
Note
If
set quoted identifiers
is
set quoted identifiers
Upgrades all compiled objects in the active database:
Example 1
dbcc upgrade_object
– is the name of a specific compiled object you
,
,
default
procedure
finds no errors or potential problem areas.
clause. Do not use
force
is
, use single quotes around the keywords. If
on
, you can use either double quotes or single quotes.
off
, all compiled
dbid
and
dbname
,
,
, and
rule
trigger
view
unless you have confirmed that
Adaptive Server Enterprise
, all
dbname
database
specify the
option
force

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents