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
'Declaration
Public NotInheritable Class ServerInstance _
Inherits WmiSmoObject
'Usage
Dim instance As ServerInstance
public sealed class ServerInstance : WmiSmoObject
public ref class ServerInstance sealed : public WmiSmoObject
[<SealedAttribute>]
type ServerInstance =
class
inherit WmiSmoObject
end
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.
Thread Safety
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.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.SmoObjectBase
Microsoft.SqlServer.Management.Smo.Wmi.WmiSmoObject
Microsoft.SqlServer.Management.Smo.Wmi.ServerInstance
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also