sp_remap

Description

Remaps a stored procedure, trigger, rule, default, or view from releases later than 4.8 and prior to 10.0 to be compatible with releases 10.0 and later. Use sp_remap on pre-existing objects that the upgrade procedure failed to remap.

Syntax

sp_remap objname

Parameters

objname

is the name of a stored procedure, trigger, rule, default, or view in the current database.

Examples

Example 1

Remaps a stored procedure called myproc:

sp_remap myproc

Example 2

Remaps a rule called default_date. Execute a use my_db statement to open the my_db database before running this procedure:

sp_remap "my_db..default_date"

Usage

Permissions

Only a System Administrator or the owner of an object can execute sp_remap.

See also

Commands dump transaction

System proceduressp_helptext

Utility programs defncopy