Skip to main content

SQL Server Services

Each service in SQL Server represents a process or a set of processes to manage authentication of SQL Server operations with Windows. This topic describes the default configuration of services in this release of SQL Server, and configuration options for SQL Server services that you can set during and after SQL Server installation. Most services and their properties can be configured by using SQL Server Configuration Manager.

SQL Server Version and its last versions when Windows is installed on the C drive.

Version

Path

SQL Server 2019

C:\Windows\SysWOW64\SQLServerManager15.msc

SQL Server 2017

C:\Windows\SysWOW64\SQLServerManager14.msc

SQL Server 2016

C:\Windows\SysWOW64\SQLServerManager13.msc

SQL Server 2014 (12.x)

C:\Windows\SysWOW64\SQLServerManager12.msc

SQL Server 2012 (11.x)

C:\Windows\SysWOW64\SQLServerManager11.msc

SQL Server 2008

C:\Windows\SysWOW64\SQLServerManager10.msc

Services Installed by SQL Server

  • SQL Server Database Services - The service for the SQL Server relational Database Engine. The executable file is <MSSQLPATH>\MSSQL\Binn\sqlservr.exe.
  • SQL Server Agent - Executes jobs, monitors SQL Server, fires alerts, and enables automation of some administrative tasks. The SQL Server Agent service is present but disabled on instances of SQL Server Express. The executable file is <MSSQLPATH>\MSSQL\Binn\sqlagent.exe.
  • Analysis Services - Provides online analytical processing (OLAP) and data mining functionality for business intelligence applications. The executable file is <MSSQLPATH>\OLAP\Bin\msmdsrv.exe.
  • Reporting Services - Manages, executes, creates, schedules, and delivers reports. The executable file is <MSSQLPATH>\Reporting Services\ReportServer\Bin\ReportingServicesService.exe.
  • Integration Services - Provides management support for Integration Services package storage and execution. The executable path is <MSSQLPATH>\130\DTS\Binn\MsDtsSrvr.exe. Integration Services may include additional services for scale out deployments. For more information, see Walkthrough: Set up Integration Services (SSIS) Scale Out.
  • SQL Server Browser - The name resolution service that provides SQL Server connection information for client computers. The executable path is c:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe
  • Full-text search - Quickly creates full-text indexes on content and properties of structured and semistructured data to provide document filtering and word-breaking for SQL Server.
  • SQL Writer - Allows backup and restore applications to operate in the Volume Shadow Copy Service (VSS) framework.
  • SQL Server Distributed Replay Controller - Provides trace replay orchestration across multiple Distributed Replay client computers.
  • SQL Server Distributed Replay Client - One or more Distributed Replay client computers that work together with a Distributed Replay controller to simulate concurrent workloads against an instance of the SQL Server Database Engine.
  • SQL Server Launchpad- A trusted service that hosts external executables that are provided by Microsoft, such as the R or Python runtimes installed as part of R Services or Machine Learning Services. Satellite processes can be launched by the Launchpad process but will be resource governed based on the configuration of the individual instance. The Launchpad service runs under its own user account, and each satellite process for a specific, registered runtime will inherit the user account of the Launchpad. Satellite processes are created and destroyed on demand during execution time. Launchpad cannot create the accounts it uses if you install SQL Server on a computer that is also used as a domain controller. Hence, setup of R Services (In-Database) or Machine Learning Services (In-Database) fails on a domain controller.
  • SQL Server PolyBase Engine - Provides distributed query capabilities to external data sources.
  • SQL Server PolyBase Data Movement Service - Enables data movement between SQL Server and External Data Sources and between SQL nodes in PolyBase Scaleout Groups.

Start, stop, pause, resume, restart SQL Server services via Windows

SQL Server Services can be managed through Windows Services (services.msc) or SQL Server Configuration Manager or SQL Server Management Studio (SSMS), net commands from a command prompt, Transact-SQL, or PowerShell.

Windows Services (services.msc)

STEP 1 - Go to Run Ã¨ type services.msc Ã¨ Click Ok.

STEP 2 - Right click on the respective services to perform Start, Stop, Pause, Resume and Restart.


SQL Server Configuration Manager

STEP 1 - Start Ã¨ All Programs Ã¨ Microsoft SQL Server è Configuration Tools Ã¨ SQL Server Configuration Manager.
Services
STEP 2 - Right click on the respective services to perform Start, Stop, Pause, Resume and Restart.


SQL Server Management Studio (SSMS)

STEP 1 - Start Ã¨ All Programs Ã¨ MS SQL Server 2012 Ã¨ SQL Server Management Studio.


STEP 2 - In Object Explorer, connect to the instance of the Database Engine, right-click the instance of the Database Engine you want to start, and then click Start, Stop, Pause, Resume, or Restart. Or, in Registered Servers, right-click the instance of the Database Engine you want to start, point to Service Control, and then click Start, Stop, Pause, Resume, or Restart.

Command Prompt Window using net Commands

The Microsoft SQL Server services can be started, stopped, or paused by using Microsoft Windows net commands.

To start the default instance of the Database Engine from a command prompt, enter one of the following commands:

net start "SQL Server (MSSQLSERVER)"

-or-

net start MSSQLSERVER

To start a named instance of the Database Engine. From a command prompt, enter one of the following commands. Replace <instancename> with the name of the instance you want to manage.

net start "SQL Server (instancename)"

-or-

net start MSSQL$ instancename

To pause or stop services from the Command Prompt window
  • To pause or stop services, modify the commands in the following ways.
  • To pause a service, replace net start with net pause.
  • To stop a service, replace net start with use net stop.

Transact-SQL

To wait for currently running Transact-SQL statements and stored procedures to finish, and then stop the Database Engine, execute the following statement.

SHUTDOWN;

To stop the Database Engine immediately, execute the following statement.

SHUTDOWN WITH NOWAIT;

PowerShell

STEP 1 - In a Command Prompt window, start SQL Server PowerShell by executing the following command.

sqlps

STEP 2 - At a SQL Server PowerShell command prompt, by executing the following command. Replace computername with the name of your computer.

# Get a reference to the ManagedComputer class.
CD SQLSERVER:\SQL\computername
$Wmi = (get-item .).ManagedComputer

STEP 3 - Identify the service that you want to stop or start. Pick one of the following lines. Replace instancename with the name of the named instance.

# default instance of the Database Engine.
$DfltInstance = $Wmi.Services['MSSQLSERVER']

# named instance of the Database Engine.
$DfltInstance = $Wmi.Services['MSSQL$instancename']

STEP 4 - To start and then stop the selected service.

# Start the service.
$DfltInstance.Start();

# Stop the service.
$DfltInstance.Stop();

# Refresh the cache.
$DfltInstance.Refresh();

Manage the SQL Server service on Linux

To start, stop, or restart an instance of the SQL Server Database Engine

Check the status of the SQL Server service using this command:

sudo systemctl status mssql-server

You can stop, start, or restart the SQL Server service as needed using the following commands:

# Stop the service.
sudo systemctl stop mssql-server

# Start the service.
sudo systemctl start mssql-server

# Restart the service.
sudo systemctl restart mssql-server

Popular posts from this blog

Download SQL Server Management Studio (SSMS)

Summary:  In this post, you will learn &  able to download  SSMS. About  SQL Server Management Studio ( SSMS ):  SSMS is Free!! SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to Azure SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL Server and databases. Use SSMS to deploy, monitor, and upgrade the data-tier components used by your applications, and build queries and scripts. Use SSMS to query, design and manage your databases and data warehouses, wherever they are - on your local computer, or in the cloud.   SSMS -  Prerequisites for Installation: SSMS supports the following 64-bit platforms when used with the latest available service pack: Supported Operating Systems: Windows 10 (64-bit) version 1607 (10.0.14393) or later Windows 8.1 (64-bit) Windows Server 2019 (64-bit) Windows Server 2016 (64-bit) Windows Server 2012 R2 (64-bit) Window...

What is SQL Server?

SQL Server SQL Server is a relational database management system (RDBMS) developed by Microsoft. SQL Server supports a wide variety of transaction processing, business intelligence and analytics applications in corporate IT environments. SQL Server supports ANSI SQL, which is the standard SQL (Structured Query Language) language. However, SQL Server comes with its own implementation of the SQL language, T-SQL. Why SQL Server? Microsoft SQL Server is a comprehensive database server and information platform offering a complete set of enterprise-ready technologies and tools that help people derive the most value from information at the lowest total-cost-of-ownership. Enjoy high levels of performance, availability, and security; employ more productive management and development tools; and deliver pervasive insight with self-service business intelligence (BI). A complete and integrated platform, Microsoft SQL Server brings it all together to get more value out of existing IT skills and asse...

SQL Server Tools - Microsoft Recommended Tools

Graphic User Interface (GUI-based Tools) SQL Server Management Studio (SSMS) SSMS SSMS is Free!!  SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to Azure SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL Server and databases. Use SSMS to deploy, monitor, and upgrade the data-tier components used by your applications, and build queries and scripts. Use SSMS to query, design and manage your databases and data warehouses, wherever they are - on your local computer, or in the cloud. SSMS -  Prerequisites for Installation: SSMS supports the following 64-bit platforms when used with the latest available service pack: Supported Operating Systems: Windows 10 (64-bit) version 1607 (10.0.14393) or later Windows 8.1 (64-bit) Windows Server 2019 (64-bit) Windows Server 2016 (64-bit) Windows Server 2012 R2 (64-bit) Windows Server 2012 (64-bit) Windows Server 2008 R2 (64-bit) Suppor...