SQL Server Standards

SQL Server Standards

Number of Instances to Install2 (may be some single instance exceptions)  1
Memory AllocationMinimum Server memory 8Gb allocated default unless specified differently.  SQL Server instance set to utilize total memory - (minus) 2Gb minimum to be left for OS
Hard Disk ArrayPhysical - preference is to use separate RAID10 arrays for the database,logs and tempdb if possible and separate from the OS array.
Virtual    - Separate database,logs,tempdb and OS even if logical only for easier and consistent management
Hard Disk PartitionsD:\data
L:\Logs
T:\TempDb
R:\Recovery
Instant File InitializationSQL Server service user added to Instant File Initialization in secpol. (done in sql server setup automatically in sql server 2016)
VCPUDefault 2 on a VM unless otherwise specified
Multiple InstancesOne Instance set up as standard (unless specified otherwise)
Default CollationLatin1_General_CI_AS
File Locations and sizingC: OS (minimum 50Gb)
Data Root Directory:                     c: <default path>
System Database Directory:  = data root directory
User Database Directory:  D:\Data\<instance>\MSSQL\data (dependent on estimated database size)
User Database Log Directory:         L:\Logs\<instance>\MSSQL\log (minimum 10Gb)
TempDb Directory:                         T:\TempDb\<instance>\MSSQL\Temp (minimum 10Gb)
TempDb Log Directory:                   T:\TempDb\<instance>\MSSQL\Temp
Backup Directory:                          R:\Recovery\<instance>\MSSQL\Backup (allow enough room for a couple of full backups)
Ports1433 (instance1) and 1443 (instance2) fixed ports, dynamic ports turned off, TCP/IP enabled.
AccountsDefault virtual service accounts, sql server and agent set to auto start. Browser service disable and start only required for mirroring
SecurityRemove local "Administrator" access, add domain group "it-databaseservices" with sysadmin and local administrator group on server (rapid deploy will do this automatically)
Instance NamingSystem Specific Server :Named instance with <system name><_instance number>
Generic/Multi System Server: Name instance with <server hostname><_instance number>
FeaturesDatabase Engine and Basic+Complete Management Tools as minimum (management tools separate install for 2016/2017)
Compatibility LevelCurrent Version
AutoshrinkOff
Auto Update StatisticsOn
Remote DAC accessEnabled
Database AutogrowthFixed amount 256Mb , limiting maximum size to 5Gb less than space limit, 128Mb for log file 1Gb less
TempDb files2 - Create a second tempdb_2.ndf on the same folder
TempDb Initial SizeDatabase file 1 and file 2 - 1Gb,  Log - 1Gb - unlimited max size
TempDb data and log file growth128Mb
Database Initial SizeSet to pre planned final size of database where possible.  Minimum 500Mb.
Query StoreTo be switched to read/write in the database properties (2016 and newer only)
Authentication ModeMixed - with windows user ADMINISTRATOR to be given the default administrator access during install then removed from logins after
Default Database Recovery ModelFull
Backup MethodSee sql server backup strategy
Default Log Backup FrequencyEvery 30 minutes as per strategy
Login AuditingFailed Logins Only
Database MailConfigured to Email Database Team Account
Service Pack and updatesUpdated to Latest SP version available on build + security updates (subject to support)
Housekeeping scriptsinstalled sp_whoisactive,sp_blitzfirst,sp_blitz,sp_blitzindex,sp_blitzcache,cpu and slow query alerts,rotate error logs
Query StoreTurn on for user databases >= SQL 2016
CEIP ServicesOff

Comments

Popular posts from this blog

SQL SERVER – Event ID 107- Report Server Windows Service (MSSQLSERVER) cannot connect to the report server database.

SQL Server Builds Information

Using DBCA silent install and disabling automatic memory management