sp_droplanguage

Description

Drops an alternate language from the server and removes its row from master.dbo.syslanguages.

Syntax

sp_droplanguage language [, dropmessages]

Parameters

language

is the official name of the language to be dropped.

dropmessages

drops all Adaptive Server system messages in language. You cannot drop a language with associated system messages without also dropping its messages.

Examples

Example 1

This example drops French from the available alternate languages, if there are no associated messages:

sp_droplanguage french

Example 2

This example drops French from the available alternate languages, if there are associated messages:

sp_droplanguage french, dropmessages

Usage

Permissions

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

Granular permissions enabled

With granular permissions enabled, you must be a user with manage server privilege.

Granular permissions disabled

With granular permissions disabled, you must be 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

System procedures sp_addlanguage, sp_helplanguage