sp_dbremap

Description

Forces Adaptive Server to recognize changes made by alter database. Run this procedure only when instructed to do so by an Adaptive Server message.

Syntax

sp_dbremap dbname

Parameters

dbname

is the name of the database in which the alter database command was interrupted.

Examples

Example 1

An alter database command changed the database sample_db. This command makes the changes visible to Adaptive Server:

sp_dbremap sample_db

Usage

Permissions

The permission checks for sp_dbremap differ based on your granular permissions settings.

Granular permissions enabled

With granular permissions enabled, you must be the database owner or a user with own database privilege on the database.

Granular permissions disabled

With granular permissions disabled, you must be the database owner or a user with sa_role.

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 alter database, dump database, dump transaction