← All guides

Database Growth on On-Prem LS Central: The Tables That Eat Your Disk

Administration & Upgrades · 6 min read · By Dex Carter · Published 2026-10-26 · Last updated 2026-10-26

Picture the call. A drive on the on-premises server is nearly full, the database file is the largest thing on it, and the first explanation offered is that the business has simply posted a lot of transactions. That explanation may even be partly true. It is still not a diagnosis. A database file grows for several different reasons, and each reason has a different fix. Treating them as one problem leads to the classic response, shrink the file, watch the space come back, and repeat the same call a few months later.

Start from a narrower claim: growth is rarely one table, and it is rarely the table people name first. The honest first step is measurement over time, because a single size reading cannot separate a table that is large and stable from a table that is large and still climbing.

The error: the disk filled, and one table took the blame

There is a gap in the tooling here. There is no out-of-the-box way to show database growth information in SQL, so an administrator who opens a size view today sees a snapshot, not a trend. A snapshot can rank tables by current size. It cannot say which table added the most space last month, and that second question is the one that matters.

Growth also hides inside behaviour that looks like growth. Autogrowth of data or transaction log files in production degrades performance, because transactions queue while SQL Server grows the file. A file that keeps expanding in small steps during trading is a performance problem first and a capacity problem second, and neither problem is solved by guessing which application table is responsible.

TempDB can muddy the picture further. Microsoft guidance for Business Central on-premises sets TempDB data files at as many files as there are cores, up to eight, then in increments of four, with all files the same size and ideally on local SSD. That is a separate configuration question from application-table growth, and it deserves its own check before TempDB size is folded into a story about retail data.

Measure first: build a table-size history

The documented pattern is a small monitoring database that stores periodic snapshots. A SysMonitor approach uses a TableSizeHistory table capturing, for each table, row counts and the reserved, data, index, and unused space in megabytes. Snapshots turn size from an opinion into a series.

  1. Create the snapshot store. Set up a separate monitoring database with a table that records table name, date, row count, and reserved, data, index, and unused megabytes, following the TableSizeHistory pattern.
  2. Take a baseline today. Record every table in the LS Central database before changing anything. A baseline taken after a cleanup proves nothing.
  3. Repeat on a fixed cadence. Snapshot on the same schedule each week or month, at a comparable point in the trading cycle, so like is compared with like.
  4. Rank two ways. Sort once by total size and once by growth since the baseline. Keep both lists, they answer different questions, and the overlap is where attention belongs.
  5. Check the file settings. Confirm how the data and log files grow, and plan any deliberate file growth for off-peak time rather than letting it happen mid-trading.

What success looks like: the history shows, for each large table, its size now, its size at the baseline, and the difference. Any conversation about retention or compression starts from those three numbers, not from the size of the database file alone.

The usual suspects, stated as suspects

No retrieved source ranks LS Central tables by growth, and this article will not invent one. What the sources do name is narrower. LS Retail documentation for a compression-estimate workaround excludes three tables by name: LSC POS Mix & Match Entry, LSC Activity Email Log, and LSC Activity Status Log. Those names appear because the workaround filters them out, not because anyone measured them as the largest tables in a live database.

That distinction is the whole point of the history built above. Treat the three named tables as the first rows to inspect in your own ranking, point-of-sale and activity-log tables are plausible places for steady operational accumulation, and then let the snapshots confirm or clear them. A suspect list is a starting order for measurement. It becomes a verdict only after the numbers arrive.

The same discipline applies to transaction and replication data: include every table the history flags as fast-growing, whatever family it belongs to, and drop any favourite theory the growth column does not support.

Compression: how big is it, really?

On-premises size can overstate the data itself. Business Central online compresses data with SQL Server data compression, so an on-premises database size may not match the size after migrating to SaaS. LS Retail gives a worked demo-database example: about 42 MB uncompressed against about 29 MB compressed, a saving of nearly 30%.

A demo database is not your database. Use the example as a reason to run the estimate, not as a forecast. The estimate tool is sp_estimate_data_compression_savings, and it carries a documented glitch on databases with LS Central installed, triggered when a field name contains an ampersand. The documented workaround filters the table cursor to LS Central tables and excludes the three tables named in the previous section.

Run with that workaround, the estimate answers a useful diagnostic question: how much of the current size is data, and how much is simply uncompressed storage of that data? A large estimated saving points toward compression as a lever. A small one points back to the growth history and to retention.

Match the table to the control

What the history showsControl to considerWhat to avoid
A log-type table growing steadily, period after periodRetention: agree how long the business needs those records, then clear older records on that scheduleDeleting by size alone, with no agreed retention period behind the decision
A large, stable table with a high compression estimateData compression, tested first with the estimate procedure and its LS Central workaroundAssuming the demo example's nearly 30% saving will repeat on this table
A table that is large but barely growingLeave it alone, and keep it in the monthly history so a change in behaviour is visibleSpending a maintenance window on a table that is not part of the growth problem
The database file itself stepping up during tradingPre-grow the file off-peak by 10% to 25% of its current size; do not disable autogrowTurning autogrow off, or letting repeated in-hours growth remain the plan

Two controls in that table deserve emphasis. Pre-growing is Microsoft's own pattern: grow files during off-peak periods by 10% to 25% of current size, and do not disable autogrow. Retention, by contrast, is a business decision wearing a technical costume, the history can show which table grows, but only the business can say how much of its history it still needs.

Growth watch: the monthly look

Keep the routine small enough to survive busy months. Once a month, take the snapshot, refresh the two rankings, largest, and fastest-growing since the baseline, and record the database file size and its free space alongside them. Growth monitoring matters for system maintenance and for planning long-term resource requirements and performance issues; a monthly series is what makes that planning possible before a disk fills.

Set two triggers in advance. First: any table whose growth rate doubles between periods gets investigated that month, not next quarter. Second: when projected growth reaches the free space on the drive inside two snapshot periods, capacity work starts. Triggers written down in advance turn a full disk from a surprise into a scheduled job, which is where this article started, and where a measured database stays.

, Dex Carter, Tech Writer

NextData Retention Policies: Automated Cleanup That Respects the Audit Trail →