This is my version of SQL Server installation check-list.
Pre-SQL Installation
- Service Account
- Procure all AD Service accounts. Preferably one for each SQL Server service.
- Register an SPN. DBAs often do not have permission to do this. Have this done by a domain admin now so it is ready to go after the installation:
- Add the readServicePrincipalName and writeServicePrincipalName permissions to the SQL Server service account in AD.
- Run the following:
setspn -S MSSQLSvc/ServerName SQLServiceAccountName
setspn -S MSSQLSvc/ServerName:1433 SQLServiceAccountName
setspn -S MSSQLSvc/ServerName.root.DomainName:1433 SQLServiceAccountName - Server Configuration
- Install the latest applicable Windows Updates. Ensure there are no pending reboots before continuing. Run Disk Defragmenter afterwards.
- Add the SQL Server service account to the following Local Security Policy.
- Replace a process level token
- Lock Pages in Memory (LPIM). May not be necessary in Windows 2008 or newer. Do it anyway.
iii. Perform Volume Maintenance Task
- Set the queue depth to an appropriate level. Preferably 128 or higher.
- Set any virus scan software to not scan any MDF, NDF, LDF, BAK or TRN files.
- Set all NICs, physical or VM, to full duplex.
- Set BIOS or VM power management to OS managed, then set to full power.
- Format data drives with an allocation unit size of 64k, and 8192 bytes for log drives.
Verify using the fsutil utility: fsutil fsinfo ntfsinfo [drive letter]: - Set the pagefile to 150% of the total RAM. If this is too large, then set it to 100% + 1 MB.
- Create local “SQL Server Admins” group, add applicable users.
- Add applicable users to local Administrators and RDP groups.
- Disk Configuration
- Drives and Directories – Create the following directory structure for a single SQL instance. Also consider directory structure requirements for other services, such Analysis Services.
- OS – C:
- SQL Installation – D:
iii. Data drive(s) – E:\SQLData, add more as needed.
- Log drive – L:\SQLLogs
- Backup drive – N:\Backups
- TempDb drive – T:\TempDb
- Disk format configuration
- Disable Indexing on disk volumes
- Disable generation of 8.3 names (command: FSUTIL BEHAVIOR SET DISABLE8DOT3 1)
- Disable last file access time tracking (command: FSUTIL BEHAVIOR SET DISABLELASTACCESS 1)
- Keep some space empty (let us say 15% for reference) on drive is possible
- Defragement the volume (Only on Filestream Data storage volume)
- Service Account Permissions
- Remove “Everyone” from non-C drives.
- Grant the following permission to the SQL Server and SQL Agent service accounts
- SQL Server
- D: – Full control
- E: – List folder contents
- L: – List folder contents
- T: – List folder contents
- E:\SQLData – Full control
- L:\SQLLogs – Full control
- T:\TempDb – Full control
- SQL Server Agent
- D: – Full control
- N: – List folder contents
- N:\SQLBackups – Full control
SQL Installation
- Features – Install the features needed for the instance. Do not install something “just in case.”
- Shared feature directory: D:\Program Files\Microsoft SQL Server\
- Shared feather directory (x86): D:\Program Files (x86)\Microsoft SQL Server\
- Instance root: D:\Program Files\Microsoft SQL Server\
- Service Accounts: add applicable AD service accounts with Automatic Startup
- SQL Server Bowser: Disabled if installing only one instance.
- Authentication Mode: Mixed, or as appropriate.
- Add “SQL Server Admins” local group to SQL Server Administrators
- Data Directories
- Root: E:\SQLData
- User database: E:\SQLData\
- User database logs: L:\SQLLogs
- Tempdb data and logs: T:\TempDb
- Backup: N:\Backups
Post-SQL Installation
- Install any SQL Server or Visual Studio service packs and updates.
- Check that Lock Pages in Memory is being used. Restart SQL service if not done after updates.
- Confirm the SPN was registered:
- Restart SQL service if not done after updates.
- The query below should return “KERBEROS” if registration was successful. Run from a remote connection:
SELECT auth_scheme
FROM sys.dm_exec_connections
WHERE session_id = @@spid - Added applicable users to sysadmin server role.
- Set Model database settings. Adjust the sizes as appropriate. Here is a good start:
- SIMPLE recovery
- Data file: 2048 MB Initial Size, 1024 MB autogrowth, unlimted size
- Log file: 1024 MB Initial Size, 512 MB autogrowth, unlimited size
- Move .mdf and .ldf if necessary.
- Set master and msdb database settings. Adjust the sizes as appropriate. Here is a good start:
- SIMPLE recovery
- Data file: 1024 MB autogrowth, unlimted size
- Log file: 512 MB autogrowth
- Set tempdb database settings. Use Glenn Berry’s suggested settingsfor a starting point.
- SIMPLE recovery
- Add additional data files as appropriate:
Logical name = tempdev2, File name = tempdb2.ndf. - All tempdb data files: 4096 MB Initial Size, 1024 MB autogrowth, unlimted size
- Log file: 1024 MB Initial Size, 512 MB autogrowth, unlimited size
- Set trace flag -T1118. This helps elevate contention in tempdb. There is some debate on this, but it looks like it does not hurt to have it on. Paul Randal’s blog goes into detail.
- Enable the DAC. (sp_configure ‘remote admin connections’, 1)
- Set Optimize for Ad hoc Workloads to True
- Set Min and MAX Server Memory to an appropriate level. Use Glenn Berry’s suggested settingsfor a starting point.
- Set Cost Threshold for parallelism as appropriate.
- Set Max Degree Parallelism as appropriate.
- Setup database mail.
- Create Administrator Operators.
- Enable Alert System in SQL Agent using the profile just created.
- Enable fail-safe operator for notification types.
- Configure SQL Error Log retention for 31 log files, or whatever is appropriate.
- Create job to cycle error logs: sp_cycle_agent_errorlog, sp_cycle_errorlog.
- Configure alerts for severity 16 through 25 as well as specific alerts for 823, 824 and 825 errors.
- Confirm SQL Server service account is NOT in the local Administrators group.
- Install Brent Ozar’s sp_blitz. Address issues.
- Install and MS Baseline Config Analyzer and SQL Server 2012 BPA on your workstation, run. Address issues.
- Install Ola Hallengren’s Maintenance Solution
- Setup backups
- Setup integrity checks
- Setup index maintenance
- Setup history maintenance







