Start, Stop, or Pause the SQL Server Service

Category:
Database
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
This example uses the Microsoft SQLDMO library to start, stop, or pause the SQL service for a specified SQL Server.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: