SqlSmoObject.GetServerName SqlSmoObject.GetServerName SqlSmoObject.GetServerName Method

Definition

Gets the name of the instance of SQL Server with which the object is associated.

protected:
 virtual System::String ^ GetServerName();
protected virtual string GetServerName ();
Protected Overridable Function GetServerName () As String
Returns

A String value that specifies the name of the instance of SQL Server.

Examples

Calling Methods

Applies to