The TrueName property returns the result set of the Microsoft® SQL Server™ global function @@SERVERNAME.
object.TrueName
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
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.
String
Read-only
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.