- Create a service account in SQL Server with the appropriate permissions for Validio. See Prerequisites.
- Create a Validio credential to connect to the service account. See Add a SQL Server Credential.
- Create a Validio source to monitor the tables in the SQL Server database. See Add a SQL Server Source.
Prerequisites
Create a service account in SQL Server with the appropriate permissions for Validio to read and validate your data. For more information about credentials in Validio, see Credentials. The following SQL script provides steps for setting up a user with the necessary permissions for the source in Validio. Copy the script into a SQL worksheet and follow the steps.Setup for user and password-based authentication
SQL
Setup for Microsoft Entra ID-based authentication
SQL
Permissions
SQL
Add a SQL Server credential

Configuration for a Microsoft SQL Server credential
- Navigate to Credentials and click + New credential.
- Under Namespace, select a namespace where the resources will be created.
- For Credential Type, select Microsoft SQL Server Credential.
- Fill in the credential parameter fields. Refer to the SQL Server Credential Parameters table.
- Check Use for catalog and schema checks to automatically discover credentials and add them to the catalog page.
- Click Create.
SQL Server credential parameters
User and password authentication
Entra ID authentication
Add a SQL Server source

Configuration for a Microsoft SQL Server source
- Navigate to Sources and click + New source.
- Under Source type, select SQL Server.
- Under Config,
- Select the valid Credential or create a new credential to authenticate your connection to the data warehouse.
- You have two options for specifying the dataset and tables to monitor:
- Select an existing table — Enter the Database, Schema, and Table to specify where the data comes from. Selecting more than one table will create a new source for each table. Refer to the SQL Server Source Configuration Parameters table.
- Use Custom SQL — Write a valid SQL query to specify the tables to monitor.
- Set the Polling schedule, which is how frequently the validators on the source will check for changes.
- Under Schema, click Continue to automatically infer the schema fields from the tables you selected. If you select many tables, this operation can take a few minutes to complete.
- Under Source details,
- Add Tags to help group related sources or to use for routing notifications.
- Add an Owner who will be the contact for incident notifications.
- Assign a Priority, which indicates the importance of incidents detected on this source.
- (Optional) Under Validators, select Row Count (metadata) to add a metadata validator to each source. This step is shown only when you select existing tables, not views or custom SQL. Freshness (metadata) is not available for SQL Server.
- Click Continue to create the source. Source names are generated automatically and will be displayed when the source creation completes. If there are more than 5 sources, you will see the names for the first five and a count of the remaining sources.