During Test Data Manager (TDM) masking processes on large SQL Server databases (especially tables with millions of rows or TB-scale sizes), the SQL Server tempdb runs out of space. This leads to masking job failure or performance degradation, requiring a database service restart to clear the space.
The exhaustion of tempdb space is an internal behavior of the SQL Server database engine. When Snapshot Isolation or RCSI is enabled, SQL Server utilizes tempdb to store row versions and temporary objects for long-running transactions.
TDM operates as a standard client of the SQL Server database; it does not have the ability to control, override, or suppress how the SQL Server engine utilizes tempdb for these internal operations. There is no configuration within the TDM product that can directly stop or reduce this usage during the masking process.
Since this is an internal database engine function, addressing tempdb space management is a database-level responsibility. We recommend that your Database Administrator (DBA) team implement the following strategies to support large-scale masking workloads:
While TDM cannot control tempdb usage, you can optimize the masking job to process data in smaller, more manageable chunks, which reduces the peak resource demand on the database engine at any given time:
Consult with your DBA team to evaluate whether Snapshot Isolation or RCSI settings are strictly necessary for the tables being masked. If these settings are not required for the specific masking workflow, disabling them during the masking window can significantly reduce tempdb overhead.