TrueName Property (SQL-DMO)

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

Applies To

SQLServer Object

Syntax

object.TrueName

Part Description
object Expression that evaluates to an object in the Applies To list

Remarks

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

Data Type

String

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetTrueName(SQLDMO_LPBSTR pRetVal);


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.


  


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