Skill 2.2.1

Recommend database configurations

Key Concepts

In Azure SQL Database, General Purpose suits most workloads, with a serverless option that scales and pauses automatically for intermittent use; Business Critical adds local SSD storage, built-in replicas, a readable secondary and In-Memory OLTP; Hyperscale scales storage to 128 TB with fast scaling and named replicas. SQL database in Fabric is autoscaling and suits Fabric-centred solutions, and SQL Server 2025 suits on-premises or VM deployments. Compatibility level 170 enables the newest language features, such as REGEXP_LIKE and AI_GENERATE_CHUNKS, and the newest optimizer behaviour.

Database scoped configurations tune behaviour per database: MAXDOP, PARAMETER_SNIFFING, OPTIMIZE_FOR_AD_HOC_WORKLOADS, LEGACY_CARDINALITY_ESTIMATION and, in SQL Server 2025, PREVIEW_FEATURES. Automatic tuning option FORCE_LAST_GOOD_PLAN (on by default in Azure SQL Database) reverts plan regressions, and CREATE_INDEX and DROP_INDEX can be enabled. Read committed snapshot isolation, accelerated database recovery and optimized locking are on by default in Azure SQL Database and should usually stay on.