Create a Data Source

Prev Next

To create a data source, go to Settings > Data Sources, click New Data Source, give it a name, add a connection (connection type, data source template and credentials), click Test Connection, and save. Then add the source to a project and ingest its schema metadata so its tables show up in the Catalog.

Applies to: Validatar Cloud · Validatar Server

A data source is Validatar's connection to one database, warehouse, file store or application. Tests, the Catalog, profiling and trust scores all work through it. When you finish this page, the source is in the Catalog with its schemas, tables and columns, and the tests in your project can use it.

The example on this page is the Wholesale Distribution System, a SQL Server database (WideWorldImporters) that Validatar Cloud reaches through a Data Agent. For a platform-specific walkthrough, see Connect to SQL Server, Connect to Snowflake or Connect to Databricks.

Before you start

  • The Data Source Admin role. Global Admins have it as well. Without it, New Data Source is greyed out.
  • An account on the source that can read the data you want to test. Validatar only reads, so it never needs write access.
  • The connection details: server or account, database, user name and password or key.
  • A network path. Validatar Cloud connects directly to sources it can reach over the internet. A database inside your own network needs a Validatar Data Agent installed next to it (Windows, Linux). Validatar Server connects directly to anything its server can reach.
  • Room on your license. If your license caps the number of active data sources, the Data Sources page shows "Using N of M allowed data sources".

Pick a connection type

The Connection Type list in the connection dialog depends on your license. These are the types Validatar offers:

Connection type Use it for
SQL Server Microsoft SQL Server and Azure SQL. Pairs with the built-in SQL Server template.
Snowflake Driver Snowflake, with key-pair authentication. Pairs with the built-in Snowflake template.
Databricks Driver A Databricks SQL warehouse, signed in as a service principal (2026.1 and later). Pairs with the built-in Databricks template.
PostgreSQL PostgreSQL. Builds a connection string for the PostgreSQL ODBC driver and pairs with the built-in PostgreSQL template.
ODBC Any database with an ODBC driver installed where the query runs: Validatar Server or a Data Agent. See Connection Strings.
OLE DB Databases reached through an OLE DB provider.
Python Script APIs, SaaS applications, file stores and in-house systems, through a Python data source template from the Marketplace.
Snowflake Engine A source read through a Snowflake data processing engine. Appears when you choose that engine.
Databricks Engine A source read through a Databricks data processing engine. Appears when you choose that engine.

For sources such as Salesforce, SAP HANA or MongoDB, look the source up in the CData Connector Library. How Does Validatar Connect to Data? covers every option.

Create the data source

  1. Go to Settings > Data Sources and click New Data Source.

  2. Enter a Name, such as Wholesale Distribution System. Validatar fills in the Reference Key from the name. Scripts and the API can refer to the source by that key, so change it now if you need a different one.

  3. Choose an Environment, such as Prod.

  4. Add a Description that says what the system is and who owns it, so the next person to open the source knows what they are looking at.

    The New Data Source form with Name, Reference Key, Environment, Description and the Connection panel's Add button

  5. In the Connection panel, click Add. The New Connection dialog opens.

  6. Leave Processing Engine on Built-In Engine: Save results in Local Storage, unless your team has set up a Snowflake or Databricks data processing engine for this source.

  7. Choose the Connection Type. For the Wholesale Distribution System, choose SQL Server.

  8. Choose the Data Source Template. When only one template fits the connection type, Validatar selects it for you.

  9. If Validatar cannot reach the source directly, choose the agent group in Data Agent Group. The field appears once your instance has at least one Data Agent group.

  10. Enter the connection details. Most types take a Connection String and a Password; click Build to fill in the string field by field. A Snowflake Driver connection shows key-pair fields instead.

  11. Click Test Connection and wait for the green Connection succeeded banner.

  12. Click Create Connection.

  13. Click Save.

The connection dialog for the Wholesale Distribution System, with callouts 6 to 11 on Processing Engine, Connection Type, Data Source Template, Data Agent Group, Connection String and Test Connection, and the green Connection succeeded banner

Keep the password out of the connection string. Type [[PASSWORD]] where the password goes and enter the real value in the Password field. Validatar stores it separately and never shows it again; an edited connection shows ******** and a Clear Password button.

The settings in the dialog:

Setting What to enter
Processing Engine Where tests run and results are stored. The built-in engine is the default.
Connection Type How Validatar talks to the source (table above).
Data Source Template The platform template. It supplies the ingestion queries, data type mappings, profiles and macros. Choosing No Assigned Template leaves the source unable to profile.
Data Agent Group The Data Agent group that runs this source's queries. No Assigned Group means Validatar connects directly.
Connection String The driver connection string. Use [[PASSWORD]] as the password placeholder.
Password The password or secret. Stored encrypted.
Description A note about this connection, such as the login it uses.

For the Wholesale Distribution System, the connection string has this shape:

Server=<server>;Database=WideWorldImporters;User=<login>;Password=[[PASSWORD]];

Add the data source to a project

Tests can use a data source only in projects it is added to. You can add it from either side:

  1. On the data source, open Projects in the side panel, check each project, and click Save. Only projects where you are a Project Admin can be checked.
  2. Or, on the Projects page, open a project's Data Sources link (the Project Data Sources page), check the data source, and click Save.

The Wholesale Distribution System is added to the Warehouse Reconciliation project.

Ingest the schema metadata

  1. On the data source, open Schema Metadata in the side panel. It becomes available once the data source is saved.
  2. Click Refresh Now and confirm.
  3. Wait for the new row in Ingestion History to finish.

The template supplies the ingestion queries, so there is nothing to write for SQL Server, Snowflake, PostgreSQL or Databricks. To keep the catalog current as tables are added, click Set Refresh Schedule. Ingesting Schema Metadata covers overrides and schedules.

Check that it worked

  • Metadata Statistics on the Schema Metadata page shows the object counts. The Wholesale Distribution System ingests 11 schemas and 49 tables.
  • Open Catalog and select the data source. The Schemas tab lists schemas such as Sales, Purchasing, Warehouse and Application.
  • Open a table such as Sales.Orders. The Columns tab lists its columns with their data types.

The Catalog page for the Wholesale Distribution System, with its name and the Schemas tab (11 schemas) highlighted

The data source pages

Each data source has these pages in its side panel:

Page What it holds
Connection Name, reference key, environment, description and the primary connection.
Schema Metadata The ingestion connection and queries, Refresh Now, the refresh schedule and the ingestion history.
Custom Metadata Extra fields brought in from other sources, under Metadata Sources and Metadata Ingestions.
Profiling The profile connection, Profile Sets, Profile Executions and Custom Profiles. See Create and Run a Profile Set.
Projects The projects that can use the source.
Permissions Who can view, test, profile and manage the source.

Do it with Validatar AI

Do it with Validatar AI (Validatar Cloud, beta). Open the AI panel and ask: "Create a SQL Server data source named Wholesale Distribution System for the WideWorldImporters database on , using the SQL Server template and our Data Agent group, and add it to the Warehouse Reconciliation project. Leave the password blank." Review what it creates before you run it. You can undo the change from the chat history.

Never paste a password, key or secret into the chat. Once the AI has created the source, open its Connection page, click Edit, type the password in the dialog, test and save. The AI cannot ingest metadata, so click Refresh Now on Schema Metadata yourself.

Troubleshooting

Symptom Cause Fix
New Data Source is greyed out You lack the Data Source Admin role, or the license limit is reached Ask a Global Admin for the role. At the limit, select an unused source and click Archive, or talk to your Validatar account team.
No Data Agent Group field in the dialog No Data Agent is registered, or your license has no Data Agent feature Install a Data Agent and check that it shows under Settings > Configuration > Data Agents.
Connection failed with a timeout or "network-related" error The query runs somewhere that cannot reach the source On Validatar Cloud, choose a Data Agent group that can reach it, or allow Validatar Cloud through the source's firewall. On Validatar Server, check the route and port from the server.
Connection failed with "Login failed" Wrong user or password, or [[PASSWORD]] is in the string but the Password field is empty Re-enter the password and test again.
Schema Metadata is not clickable The data source has not been saved yet Click Save on the Connection page first.
Ingestion finishes but the Catalog is empty or missing tables The login cannot see those objects Grant the login read access to the schemas, then click Refresh Now again.
Profiling says the connection "needs to be assigned to a Data Source Template" The connection has no template Edit the connection, choose a Data Source Template, save and ingest.
"Selected data agent doesn't support key-pair auth" The Data Agent is older than 2025.2 Upgrade the agent from Settings > Configuration > Data Agents.

Engineers who work from a coding agent can create and update data sources through the Validatar MCP server and the Validatar Agent Kits.