topic hubPlatform, DevOps & Performanceofficial - Microsoftunreviewed - model text not yet checked

Configuring Business Central database

Configuring the Business Central database for on-premises deployments: SQL Server installation considerations, performance tuning, compatibility level, index management, table partitioning and compression, and read scale-out. It answers questions about how to set up and tune the SQL database behind Business Central.

Path: Business Central on-premises > Administration > Configuring Business Central database · tier official · system platform · narrative unreviewed (model text not yet checked)

Overview

This section covers the SQL Server side of an on-premises Business Central deployment. It starts with installation considerations such as disk partitioning, virus scanning, memory, TempDB, full-text search, MAXDOP, statistics and high availability, for both on-premises and Azure setups.

The remaining pages deal with tuning and scaling. One page gives an overview of SQL Server performance techniques, including data access patterns, table keys, bulk inserts, AL database methods, query objects, query hints, FlowFields troubleshooting and Query Store monitoring. Separate pages go deeper on setting the compatibility level, table partitioning and data compression, managing index usage per company, and configuring read scale-out with read-only replicas.

A sensible reading order is the installation considerations page, then the compatibility level page, then the performance overview. Move to indexes, partitioning and compression, or read scale-out when a specific performance or storage need arises.

Key points

  • Installation guidance covers disk partitioning, virus scanning, memory, TempDB, full-text search, MAXDOP settings, statistics management and high availability.
  • Set the SQL database compatibility level to match the server version (140 for SQL Server 2017, 130 for SQL Server 2016) to get the latest optimization features.
  • The performance overview covers table keys, bulk inserts, AL database methods, query objects, query hints, FlowFields troubleshooting and Query Store monitoring.
  • Index usage can be managed per company: view usage statistics and storage size, and turn nonessential indexes off to improve write performance.
  • Unique indexes and primary keys are protected and cannot be disabled.
  • Table partitioning and data compression are supported for on-premises databases to improve manageability and query performance and reduce storage; the CompressionType property is involved.
  • Read scale-out uses read-only replicas and needs checks for Azure SQL Database or SQL Server support plus server instance configuration.

Learn pages

  • Configuring a Database for Read Scale-Out: Get tips for how to make your on-premises database ready for read scale-out.
    • Status: Read scale-out is automatically enabled on Business Central Online databases.
    • Prerequisite: On-premises Business Central must determine if database supports read scale-out before enabling.
    • Step: For Azure SQL Database, check performance tier for read scale-out support and enable if available.
    • Step: For SQL Server, configure read-only routing for Always On availability group.
    • Step: Enable SQL read-only replica support on the Server instance.
  • Installation considerations for Microsoft SQL Server and Business Central: Learn about the requirements for installing and configuring Microsoft SQL Server to work with Business Central.
  • Manage database index usage: Learn how to manage database indexes in Business Central to optimize performance, reduce storage costs, and improve write operations with enhanced tools.
  • Optimizing SQL Server Performance with Business Central: Describes how to optimize performance when accessing data from the SQL Server database.
    • Article provides guidance on optimizing SQL Server performance for Business Central data access
    • Topics covered include SQL compatibility level, data access patterns, table keys, bulk inserts, and query optimization
    • Azure SQL Database and Azure SQL Managed Instance offer monitoring tools and performance tuning capabilities
    • Query Store and Event Log can be used to monitor and troubleshoot long-running SQL queries
    • Read Scale-Out feature improves performance by distributing read operations across replicas
    • SmartSQL can be disabled to troubleshoot performance issues with queries involving FlowFields
  • Setting SQL Compatibility Level to Optimize Database Performance: Enable query optimizer features in a database by setting the compatibility level
    • Database running on Azure SQL Database or SQL Server 2016 and later should have compatibility level set to match database server.
    • Setting compatibility level equips database with latest optimization features; demo databases default to SQL Server 2014 compatibility.
    • Step: Change compatibility level using SQL Server Management Studio by opening database properties Options page or running ALTER DATABASE statement.
    • Compatibility level 140 sets database compatible with SQL Server 2017; level 130 with SQL Server 2016 and Azure SQL Database.
    • Limit: Azure SQL Database compatibility level is subject to change; refer to Azure documentation for latest supported level.
  • Using Table Partitioning and Data Compression: Learn how to use table partitioning and data compression to improve data access performance in Business Central online.
    • Table partitioning divides large tables across filegroups for faster maintenance, improved queries, and better performance via partition elimination.
    • Prerequisite: Partitioning field must be included in the table’s primary key in AL code; partitioning is configured in SQL Server after table publication.
    • Limit: Primary key fields cannot be added after an extension publishes to production; partitioning is limited to new extensions or existing ones with partitioning fields already in primary keys.
    • Compression reduces table size and improves I/O-intensive workload performance; CompressionType property lets you set Row, Page, or Unspecified compression.
    • In Business Central online, tables are compressed using Page compression by default.
    • Partitioning and compression can be combined for flexible data archiving on historical partitions without CPU overhead on active parts.

Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.

Videos and posts

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Business Central pages and reports

The pages, reports and queries this hub’s Learn pages name (ms.search.form, API reference), joined to the code by exact object id (data/index/docs-objects.json); a page shows the table it runs on.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 6 Learn pages