ServerAlias Class

 

The ServerAlias class represents an alias for a server connection on the Windows Management Instrumentation (WMI) installation.

Namespace:   Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)


public ref class ServerAlias sealed : WmiSmoObject, ICreatable, 
	IDroppable

NameDescription
System_CAPS_pubmethodServerAlias()

Initializes a new instance of the ServerAlias class.

System_CAPS_pubmethodServerAlias(ManagedComputer^, String^)

Initializes a new instance of the ServerAlias class on the specified WMI installation and with the specified name.

NameDescription
System_CAPS_pubpropertyConnectionString

Gets or sets the connection string that the alias uses to connect to the server.

System_CAPS_pubpropertyName

Gets or sets the name of the referenced Windows Management Instrumentation (WMI) object.(Inherited from WmiSmoObject.)

System_CAPS_pubpropertyParent

Gets or sets the ManagedComputer object that is the parent of the ServerAlias object.

System_CAPS_pubpropertyProperties

Represents a collection of Property objects. Each Property object represents a property defined on the Windows Management Instrumentation (WMI) object.(Inherited from WmiSmoObject.)

System_CAPS_pubpropertyProtocolName

Gets or sets the name of the protocol used by the server connection alias.

System_CAPS_pubpropertyServerName

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

System_CAPS_pubpropertyState

Gets the state of the referenced object.(Inherited from SmoObjectBase.)

System_CAPS_pubpropertyUrn

Gets the Uniform Resource Name (URN) address that represents the Windows Management Instrumentation (WMI) object.(Inherited from WmiSmoObject.)

System_CAPS_pubpropertyUserData

Gets or sets user-defined data associated with the referenced object.(Inherited from SmoObjectBase.)

NameDescription
System_CAPS_pubmethodCreate()

Creates a server connection alias on the WMI installation as defined by the ServerAlias object.

System_CAPS_pubmethodDrop()

Removes the server connection alias from the WMI installation.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitialize()

Initializes the referenced object.(Inherited from WmiSmoObject.)

System_CAPS_protmethodIsObjectInitialized()

Specifies whether the referenced object is initialized.(Inherited from WmiSmoObject.)

System_CAPS_pubmethodRefresh()

Refreshes the referenced object and its properties.(Inherited from WmiSmoObject.)

System_CAPS_protmethodSetName(String^)

Sets the name of the referenced object.(Inherited from WmiSmoObject.)

System_CAPS_protmethodSetParentImpl(WmiSmoObject^)

Sets the parent of the referenced object.(Inherited from WmiSmoObject.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(String^, array<Object^>^)

Validates the state of an object.(Inherited from SmoObjectBase.)

A server connection alias is required when:

  • The client is connecting to an instance of Microsoft SQL Server over a network transport that is not the default network transport.

  • The instance of SQL Server to which the client is connected listens on an alternate named pipe.

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Microsoft.SqlServer.Management.Smo.Wmi Namespace
WMI and SQL Server
Connecting to the SQL Server Database Engine

Return to top
Show: