
Using Startup Accounts for SQL Server Services
To start and run, each service in SQL Server 2005 must have a user account. User accounts can be built-in system accounts or domain user accounts.
In addition to having user accounts, every service has three possible startup states that users can control:
-
Disabled The service is installed but not currently running.
-
Manual The service is installed but will start only when another service or application needs its functionality.
-
Automatic The service is started by the operating system after device drivers are loaded at boot time.
The following table shows default and optional accounts for each SQL Server service, and the startup states for each service.
|
SQL Server service name
|
Default account
|
Optional accounts
|
Startup type
|
Default state following Setup
|
|---|
|
SQL Server
|
SQL Server Express Edition on Windows 2000: Local system
SQL Server Express Edition on all other supported operating systems: Network service
All other editions on all supported operating systems: Domain user1
|
SQL Server Express Edition: Domain User, Local System, Network Service1
All other editions: Domain User, Local System, Network Service1
|
Automatic2
|
Started
Stopped only if user chooses not to autostart
|
|
SQL Server Agent
|
Domain user3
|
Domain User, Local System, Network Service1,6
|
Disabled
Automatic only if user chooses to autostart
|
Stopped
Started only if user chooses to autostart
|
|
Analysis Services
|
Domain user3
|
Domain User, Local System, Network Service, Local Service
|
Automatic
|
Started
Stopped only if user chooses not to autostart
|
|
Reporting Services
|
Domain user3
|
Domain User, Local System, Network Service, Local Service
|
Automatic
|
Started
Stopped only if user chooses not to autostart
|
|
Notification Services4
|
N/A
|
N/A
|
N/A
|
N/A
|
|
Integration Services
|
Windows 2000: Local system
All other supported operating systems: Network service
|
Domain User, Local System, Network Service, Local Service
|
Automatic
|
Started
Stopped only if user chooses not to autostart.
|
|
Full-Text Search
|
Same account as SQL Server
|
Domain User, Local System, Network Service, Local Service
|
Manual
|
Stopped
Started only if user chooses to autostart.
|
|
SQL Server Browser
|
SQL Server Express Edition on Windows 2000: Local system
SQL Server Express Edition on all other supported operating systems: Local service
All other editions on all supported operating systems: Domain user1,3
|
Domain User, Local System, Network Service, Local Service
|
Disabled5
Automatic only if user chooses to autostart.
|
Stopped5
Started only if user chooses to autostart.
|
|
SQL Server Active Directory Helper
|
Network service
|
Local System, Network Service
|
Disabled
|
Stopped
|
|
SQL Writer
|
Local system
|
Local System
|
Automatic
|
Started
|
1
Important Microsoft recommends that you do not use the Network Service account for the SQL Server or the SQL Server Agent services. Local User or Domain User accounts are more appropriate for these SQL Server services.
2Set as manual in failover cluster configurations.
3For unattended installations, this property is required. If it is not specified, Setup will fail. To specify local system, use SQLAccount=LocalSystem or ASAccount=LocalSystem. For more information and sample syntax for remote and unattended installations, see How to: Install SQL Server 2005 from the Command Prompt.
4
SQL Server Setup can install but will not configure Notification Services. For more information about enabling Notification Services after Setup, see the "Configuring Notification Services Windows Services" topic in SQL Server 2005 Books Online.
5For failover cluster installations, the SQL Server Browser is set to start automatically, and is started by default following Setup.
6For more information about supported Windows accounts for SQL Server Agent, see The supported Windows account types that you can use to run the SQL Server Agent service in SQL Server 2005.
Important: |
|---|
|
For failover cluster installations, local system and local service accounts are not allowed for clustered services like SQL Server, SQL Server Agent, and SSAS. For more information, see Before Installing Failover Clustering.
For SQL Server 2005 installations in side-by-side configurations with earlier versions of SQL Server, SQL Server 2005 services must use accounts found only in the global domains group. Additionally, accounts used by SQL Server 2005 services must not appear in the local Administrators group. Failure to comply with this guideline will cause unexpected security behavior.
|
Using a Domain User Account
A domain user account may be preferred when the service must interact with network services. Many server-to-server activities can be performed only with a domain user account, for example:
-
Remote procedure calls.
-
Replication.
-
Backing up to network drives.
-
Heterogeneous joins that involve remote data sources.
-
SQL Server Agent mail features and SQL Mail. This restriction applies if using Microsoft Exchange. Most other mail systems also require clients, like the SQL Server and SQL Server Agent services, to be run on accounts with network access.
Using the Local Service Account
The Local Service account is a special, built-in account that is similar to an authenticated user account. The Local Service account has the same level of access to resources and objects as members of the Users group. This limited access helps safeguard your system if individual services or processes are compromised. Services that run as the Local Service account access network resources as a null session with no credentials.
Using the Network Service Account
The Network Service account is a special, built-in account that is similar to an authenticated user account. The Network Service account has the same level of access to resources and objects as members of the Users group. Services that run as the Network Service account access network resources using the credentials of the computer account.
Important: |
|---|
|
Microsoft recommends that you do not use the Network Service account for the SQL Server or SQL Server Agent services. Local User or Domain User accounts are more appropriate for these SQL services.
|
Using the Local System Account
The Local System account is a highly privileged account; use caution when assigning Local System permissions to SQL Server service accounts.
Security Note: |
|---|
|
To increase the security of your SQL Server installation, run SQL Server services under a local Windows account with the lowest possible privileges.
|
Changing User Accounts