| title | SqlService Class | |
|---|---|---|
| description | SqlService Class | |
| author | markingmyname | |
| ms.author | maghan | |
| ms.date | 03/14/2017 | |
| ms.service | sql | |
| ms.topic | reference | |
| helpviewer_keywords |
|
|
| apilocation | sqlmgmproviderxpsp2up.mof | |
| apiname | SqlService Class | |
| apitype | MOFDef |
[!INCLUDE SQL Server] The SqlService Class represents an instance of a [!INCLUDEssNoVersion] service.
The SqlService Class is used to programmatically manage the [!INCLUDEssNoVersion] service. With the SqlService Class object, you can perform the following tasks:
-
Connect to the service.
-
Modify the account and password used to connect to the service.
-
Start, stop, pause, and resume the service.
-
Check the properties of the service.