What SDDT Analyzes
SDDT analyzes both database metadata and sampled values. Sample analysis is not a separate step — SDDT loads sample data automatically for every field of a table that contains rows. An empty table has no data to load. Wherever this documentation says "when sample data is available" or "when sample data is loaded", it refers to a table that is not empty. SDDT uses both inputs as detection signals to determine which sensitive data types a column is likely to contain.
SDDT performs the analysis separately for metadata and sample data. Metadata analysis examines information available from the database schema. Sample analysis examines values from the first available rows.

Database Metadata
Metadata analyzers evaluate information that SDDT reads from the database schema without reading row data.
The metadata available to SDDT includes:
- table and schema names;
- column names;
- database data types;
- primary key relationships;
- foreign key relationships.
SDDT uses this information to identify structural and naming patterns that can indicate a sensitive data type.
Table and Column Names
SDDT compares column names against pattern rules associated with supported sensitive data types.
For example, a column named EmailAddress or Email can match the pattern rules for the Email Address data type.
Column-name matching is one of the signals used during metadata analysis. A column name by itself does not necessarily determine the final sensitive data type.
Data Types
SDDT classifies each column's database data type into one of its own internal categories, such as Text, Date, Decimal, or Integer.
Each supported database has its own mapping from native database types to these categories. For example, SDDT maps varchar, nvarchar, char, nchar, text, and ntext in SQL Server, and varchar2, nvarchar2, nchar, char, and long in Oracle, all to the Text category.
Binary types, such as varbinary, image, and BLOB, are not supported for masking.
A metadata analyzer checks a column's mapped category, not its native database type. This means an analyzer that requires the Text category works the same way across every database SDDT supports.
For example, the metadata analyzer for Email Address only evaluates columns mapped to the Text category.
Primary and Foreign Keys
SDDT reads primary key and foreign key relationships from the database schema.
This structural information is used as a detection signal for data types such as:
- Primary Key
- Foreign Key
- ID
Key relationships therefore provide information about the role of a column in the database structure in addition to its name and data type.
Sample Data
SDDT loads sample data and runs sample analysis automatically as part of Analyze. This is not a separate step and does not require a manual action.
Sample analyzers run separately from metadata analyzers and evaluate the actual values stored in a column against pattern rules.
For example, a sample analyzer can evaluate values such as:
user@example.com
john@example.com
mary@example.com
as part of detecting whether the column may contain Email Address data.
Sample analysis therefore provides information that cannot be obtained from column metadata alone.
Some sample analyzers match values against built-in word lists (dictionaries) instead of patterns. SDDT uses dictionaries for First Name, Last Name, State/Province (names and codes), Address (street suffixes), Country (names and codes), Industry Name, and Term. The other types are detected by patterns, such as regular expressions.
Not every supported sensitive data type has a sample analyzer. Some data types are detected from metadata only, including several financial and loan-related types.
How Metadata and Sample Data Are Used
SDDT combines different types of information as detection signals.
| Input | Example | Used for |
|---|---|---|
| Table or schema name | Customers | Metadata analysis |
| Column name | EmailAddress | Metadata analysis |
| Data type category | Text | Metadata analysis |
| Sample value | user@example.com | Sample analysis |
| Primary key relationship | PK metadata | Structural detection signal |
| Foreign key relationship | FK metadata | Structural detection signal |
| Sample value matched against a dictionary | John | Sample analysis |
Different inputs provide different types of evidence. For example, a column name can indicate the semantic role of a field, while a sample value can provide a pattern that can be evaluated directly.
SDDT stores the results of these analyses as part of the discovery results. The results can include information from entity-level metadata, field-level metadata, and sample-data analysis.
Sampling
SDDT does not analyze every row in a table during sample analysis. By default, it analyzes up to 100 sample rows per table.
The number of sample records is controlled by the AmountOfSampleRecords setting in the application configuration file.
This setting is not exposed in the SDDT UI.
SDDT uses the same sampling principle across every database it supports: it selects the first available rows, without sorting by value or applying random sampling. The exact query syntax differs by database.
For Oracle, this selection is not fully stable. Oracle orders rows by the pseudo-column assigned during the scan rather than by data.
Because sample analysis uses a limited number of rows, the sampled values represent only part of the available data. Metadata analysis is performed independently of this sampling.
To run metadata-only discovery, set AmountOfSampleRecords to 0 in SensitiveDataDiscovery.exe.config in the SDDT installation folder. SDDT then reads no data rows and detects sensitive columns by name and metadata only. Editing the file requires administrator rights, and an upgrade may overwrite your changes.
Sample Data Lifecycle
Sample data is loaded for analysis and held in memory while the analysis is performed.
After the analysis is complete, SDDT clears the sample data held in memory.
SDDT does not write sample values to the log or to the crash-recovery file.
What Is Not Analyzed
SDDT's detection process is based on the metadata and sample data available to it.
This means that:
- metadata analysis does not require reading row data;
- sample analysis uses a limited number of rows rather than the entire table;
- not every sensitive data type has a sample analyzer;
- some sensitive data types can be detected from metadata only.
SDDT looks for patterns inside values, but it scores a column by how many of the sampled rows match. A free-text column, such as notes, where only a few rows contain an email address or a phone number usually gets a low score and is not detected as sensitive. SDDT flags columns that mostly contain one type of data. It does not find occasional personal data inside free text. Such a column reaches the destination unmasked unless you select an algorithm for the whole column manually. SDDT cannot mask only the sensitive part of a free-text value.
What SDDT Analyzes