Language Property

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The Language property exposes the language used by an instance of Microsoft SQL Server or a login.

语法

object
.Language [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A string that identifies an installed SQL Server language by name

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetLanguage(SQLDMO_LPBSTR pRetVal);
HRESULT SetLanguage(SQLDMO_LPCSTR NewValue);

备注

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.

ms140591.note(zh-cn,SQL.90).gif注意:
SQL Distributed Management Objects (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 using SysFreeString.

Applies To:

Login Object

SQLServer Object

请参阅

其他资源

default language 选项

帮助和信息

获取 SQL Server 2005 帮助