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)
Public NotInheritable Class ServerInstance
Inherits WmiSmoObject
public sealed class ServerInstance : WmiSmoObject
public ref class ServerInstance sealed : public WmiSmoObject
public final class ServerInstance extends WmiSmoObject
public final class ServerInstance extends WmiSmoObject
With the ServerInstance class you can:
To get or set ServerInstance object properties or run ServerInstance methods, users must be a member of the sysadmin fixed server role.
System.Object
Microsoft.SqlServer.Management.Smo.SmoObjectBase
Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
Managing Services and Network Settings by Using WMI Provider
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.
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.Target Platforms