ServerAlias.ServerName 속성

Gets or sets the name of the instance of SQL Server to which the server alias connects.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Wmi
어셈블리:  Microsoft.SqlServer.SqlWmiManagement(Microsoft.SqlServer.SqlWmiManagement.dll)

구문

‘선언
Public Property ServerName As String 
    Get 
    Set
‘사용 방법
Dim instance As ServerAlias 
Dim value As String 

value = instance.ServerName

instance.ServerName = value
public string ServerName { get; set; }
public:
property String^ ServerName {
    String^ get ();
    void set (String^ value);
}
member ServerName : string with get, set
function get ServerName () : String 
function set ServerName (value : String)

속성 값

유형: System.String
A String value that specifies the name of the instance of SQL Server to which the server alias connects.

WMI 공급자를 사용하여 서비스 및 네트워크 설정 관리

참고 항목

참조

ServerAlias 클래스

Microsoft.SqlServer.Management.Smo.Wmi 네임스페이스

관련 자료

WMI and SQL Server

SQL Server 데이터베이스 엔진에 연결