ArcObjects Library Reference (DataSourcesGDB)  

IDataServerManager.ServerName Property

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(
  BSTR ServerName
);
[C++]

Parameters

ServerName [out, retval]   ServerName is a parameter of type BSTR ServerName [in]   ServerName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IDataServerManager Interface