Поделиться через


TrueName Property

В будущей версии Microsoft SQL Server эта возможность будет удалена. Избегайте использования этой возможности в новых разработках и запланируйте изменение существующих приложений, в которых она применяется.

The TrueName property returns the result set of the Microsoft SQL Server global function @@SERVERNAME.

Синтаксис

object
.TrueName

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

String

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetTrueName(SQLDMO_LPBSTR pRetVal);
ms142651.note(ru-ru,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.

Замечания

The @@SERVERNAME function returns the name of the instance of SQL Server. By default, an instance of SQL Server receives the network name of the server running the instance of SQL Server.

Applies To:

SQLServer Object