Changes the default language of a login.
sp_defaultlanguage [@loginame =] 'login' [,[@language =] 'language']
0 (success) or 1 (failure)
A default language can be set by using either sp_defaultlanguage or sp_addlogin when the login is initially added to SQL Server. Use sp_helplanguage to display a list of the valid language options.
Any user can use the SET LANGUAGE statement to change the language setting for the duration of the current session. Use the @@LANGUAGE function to show the current language setting.
If the default language of a login is dropped from the server, the default language of the server is used as the initial language setting, and a message is displayed.
sp_defaultlanguage cannot be executed within a user-defined transaction.
Execute permissions default to the public role for users changing the default language for their login. Only members of the sysadmin or securityadmin fixed server roles can execute sp_defaultlanguage for other logins.
This example sets the default language for login Claire to french.
EXEC sp_defaultlanguage 'Claire', 'french'
@@LANGUAGE | sp_helplanguage |
SET | System Stored Procedures |
sp_addlogin |