ServerInstance Class

The ServerInstance class represents an instance of Microsoft SQL Server.

Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (in microsoft.sqlserver.sqlwmimanagement.dll)
Syntax

VisualBasicDeclaration
Public NotInheritable Class ServerInstance
    Inherits WmiSmoObject
CSharp
public sealed class ServerInstance : WmiSmoObject
ManagedCPlusPlus
public ref class ServerInstance sealed : public WmiSmoObject
JSharp
public final class ServerInstance extends WmiSmoObject
JScript
public final class ServerInstance extends WmiSmoObject
Remarks

With the ServerInstance class you can:

  • Manage protocols and network libraries on an instance of SQL Server.

To get or set ServerInstance object properties or run ServerInstance methods, users must be a member of the sysadmin fixed server role.


Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
      Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
Example

Managing Services and Network Settings by Using WMI Provider

Thread Safety

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

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
See Also

Tags :


Page view tracker