Language Property (SQL-DMO)

The Language property exposes the language used by a server running Microsoft® SQL Server™ or a login.

Applies To
Login Object SQLServer Object

Syntax

object.Language [= value]

Part Description
object Expression that evaluates to an object in the Applies To list.
value String identifying an installed SQL Server language by name.

Remarks

SQL Server language records direct display of error and status messages by choosing localized text for messages and localized formatting for date values.

Set the Language property of the SQLServer object to alter the default language record used by all users on the referenced server. Set the Language property of a Login object to direct language use for a client connection using the referenced login.

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetLanguage(SQLDMO_LPBSTR pRetVal);

HRESULT SetLanguage(SQLDMO_LPCSTR NewValue);


Note SQL-DMO strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference by using SysFreeString.


See Also

default language Option

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.