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.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

See also

Commands dump transaction

System procedures sp_helptext

Utility programs defncopy