This document is archived and information here might be outdated. Recommended version. |
The data server name.
[Visual Basic .NET]
Public Property ServerName As String
[C#]
public string ServerName {get; set;}
[C++]
HRESULT get_ServerName(
BSTR ServerName
);
[C++]
HRESULT put_ServerName(
System.String* ServerName
);
[C++] Parameters ServerName [in]
ServerName is a parameter of type BSTR ServerName [out, retval]
ServerName is a parameter of type BSTR*
The ServerName property is used to return or set the name of the server of the Data Server Manager, for example; �myserver\sqlexpress�. The ServerName value is used with the CreateConnectionFile method. Setting the ServerName property is one method for initializing the DataServerManager before connecting to the Database Server.