sp_setlangalias

Assigns or changes the alias for an alternate language.

Syntax

sp_setlangalias language, alias

Parameters

Examples

Usage

alias replaces the current value of syslanguages.alias for the official name; the set language command can use the new alias in place of the official language name.

See also set in Reference Manual: Commands.

Permissions

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

SettingDescription
Enabled

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

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:

InformationValues
Event

38

Audit option

exec_procedure

Command or access audited

Execution of a procedure

Information in extrainfo
  • 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

Related reference
sp_addlanguage
sp_droplanguage
sp_helplanguage