Databases
Where: Settings › Databases
Who can use it: Admins and Owners
Connect Tursio to the databases you want to search. Tursio reads the schema in place and runs questions against the live database, so you don't copy or move data. You connect each database once, whatever its SQL dialect, and people ask questions in plain language from a single place.
The LLM, Microsoft sign-in, redaction, API, and MCP connections are on the Agents page.
Supported databases
Pick one of these in the Dialect list:
- Snowflake
- Fabric Warehouse
- Azure SQL
- SQL Server
- Kusto (KQL DB)
- Databricks
- ClickHouse
- SAP HANA
- Amazon Redshift
- IBM Db2 for i
- Microsoft Excel
- Cassandra
- PostgreSQL
- Oracle
- MySQL
- Supabase
- Salesforce
Symitar (Jack Henry) core data is supported through Workflows. A Load CSV workflow loads the Symitar exports into a PostgreSQL database on Tursio's internal PostgreSQL. You then add a PostgreSQL connection to that database.
You can add several connections to the same database, for example with different database users, and control access to each connection per user.
The Databases tab
The tab lists every connection with its dialect, host, database, username, last training time, and training status. Each name has a Main or Dev pill.
- Use Search to filter by name, dialect, host, database, or username.
- Use the All / Main / Dev filter to show one kind of connection.
- Turn on Auto refresh to reload the list every minute. This is useful while a connection is training.
- Open the row menu (⋯) to refresh, edit, copy, merge, export, import, or delete a connection.
(1) Add database, (2) Auto refresh, (3) Main/Dev filter, (4) row menu.
A Stale status means the connection changed since it was last trained. Tursio shows a banner, for example Changes detected in
Add a database
- Select + on the Databases tab, or Add database when no database exists yet.
- Pick the Dialect. The form shows the fields for that database.
- Type a Connection Name. Use letters, numbers, underscores, or spaces, up to 30 characters.
- Fill in the connection details, such as host, port, database, and credentials. Some dialects also have an Authentication Method.
- Select Validate. Tursio connects to the database with the details you entered.
- Select Add. Add stays disabled until validation passes.
(1) Dialect, (2) Connection Name, (3) Authentication Method, (4) Validate, then Add.
When validation passes, Tursio shows Validated connection successfully. If it fails, the message names the problem, for example a refused connection, a timeout, or a database that doesn't exist. Fix the details and select Validate again.
(1) Validation message, (2) Add.
Next, add query tables for the connection in Query tables and train it. You can ask questions once training succeeds.
Connection fields by dialect
Every dialect starts with Connection Name. The other fields are:
| Dialect | Fields |
|---|---|
| PostgreSQL, MySQL, Oracle, Amazon Redshift | Hostname, Port, Database, Username, Password, Parameters |
| Snowflake | Hostname, Port, Database, Username, Authentication Method (Password or Private Key, with a Private Key File upload), Warehouse (optional), Parameters |
| SQL Server, Azure SQL, Fabric Warehouse | SQL Server Host, Port, Database, Client ID, Client Secret, Parameters, Power BI Configuration toggle. Azure SQL adds Use Managed Identity. Azure SQL and Fabric Warehouse add Purview Configuration (see Microsoft Purview). |
| Kusto (KQL DB) | Kusto Cluster URI, Port, KQL Database, Tenant ID, Client ID, Client Secret, Parameters |
| Databricks | Databricks Host, Access Token, HTTP Path, Database, Parameters |
| ClickHouse | Protocol (HTTP or Native), Hostname, Port, Database, Username, Password, Parameters |
| SAP HANA | Hostname, Port, Tenant Database, Username, Password, Parameters |
| IBM Db2 for i | System (Host), Relational Database (RDB), Username, Password, Parameters, IP Whitelist toggle |
| Cassandra | Hostname, Port, Keyspace, Username, Password, Datacenter, Consistency Level, Parameters |
| Supabase | Connection URI, Password |
| Salesforce | Username, Authentication Method (SOAP, Username-Password OAuth2, or JWT Bearer), Domain, and the credentials for that method: Password and Security Token, Consumer Key and Consumer Secret, or Private Key (PEM) |
| Microsoft Excel | Database Name |
Parameters takes optional connection settings as comma-separated key=value pairs, for example authentication=serviceprincipal, trustservercertificate=yes. For IBM Db2 for i, schemas=LIB1,LIB2 limits tables to those libraries. Leave it blank to see all libraries.
For Salesforce, set Domain to login for production or test for a sandbox.
The Power BI Configuration toggle syncs metric definitions from Power BI. See Tune context.
Edit a database
- Open the row menu (⋯) on the connection and select Edit.
- Change the fields you need, such as the name, a password or client secret, or Parameters.
- Select Validate, then Update.
The dialect, host, port, database, and username (or client ID) can't be changed after you add the connection. To change them, add a new connection.
Refresh a database
When tables or columns change in the database, refresh the connection so Tursio sees the latest structure.
- Open the row menu (⋯) on the connection.
- Select Refresh. Tursio shows Connection refreshed when it's done.
New tables then appear when you add query tables. To use them in answers, add them as query tables and retrain.
Schema change detection
Tursio checks each connection's live schema against its query tables about once an hour. If an onboarded table or column no longer exists, or the database can't be reached, a banner appears on the Settings and Context pages. It lists the missing tables and columns, or says the connection can't be reached.
(1) Schema change banner with the missing tables.
When you see it, check that the tables and columns still exist, refresh the connection, update or remove the affected query tables, and retrain. The banner can take up to an hour to clear. See Training.
Delete a database
- Open the row menu (⋯) on the connection and select Delete.
- Review what stops working: live search on this connection, its dev connection, and connected apps and MCP clients that use it. Then select I want to delete this connection.
- Type the connection name exactly.
- Select Delete this database connection. Tursio shows Database deleted.
(1) Type the connection name, (2) Delete this database connection.
Deleting a connection
Deleting a main connection turns off Tursio search on that database right away and can't be undone. The database and its data aren't affected.
Dev connections
A dev connection is a copy of a main connection. Use it to change context and retrain without affecting live queries. When you're happy with the result, merge it back into the main connection.
Create a dev connection
- Open the row menu (⋯) on a main connection.
- Select Create dev connection.
- Select Create in the Create Dev Connection dialog.
(1) Row menu, (2) Create dev connection.
(1) Create.
Tursio copies the connection, its query tables, its context, and its training. The copy is named after the main connection with _dev at the end and has a Dev pill. If the main connection was trained, you can query the copy right away.
(1) Dev copy created, (2) Dev pill.
Train a dev connection
Edit context on the dev connection, then train it. In Run training, pick the dev connection in Database. Only the dev connection trains. The main connection keeps serving live queries.
(1) Dev connection selected, (2) Run training.
If you pick a trained main connection instead, Tursio warns Training on main may disrupt usage. You can create a dev connection, continue on the existing one, or select Continue on Main (Not recommended). See Training for training options.
Merge a dev connection
- Open the row menu (⋯) on the dev connection.
- Select Merge connection.
(1) Dev row menu, (2) Merge connection.
Tursio replaces the main connection's context and training with the dev connection's, then removes the dev copy. It shows Dev copy merged successfully. Original connection is now live with the dev configuration.
Delete a dev connection
- Open the row menu (⋯) on the dev connection and select Delete.
- Select Delete in the confirmation dialog.
The main connection and live search keep running.
(1) Delete.
Microsoft Purview
Tursio can read a connection's schema, descriptions, and table relationships from Microsoft Purview instead of scanning the database. Purview governs the metadata: the catalog, business descriptions, data products, and access scope. Tursio reads it to build the semantic model. This is available for Azure SQL and Fabric Warehouse connections.
How it works
- Purview governs. Table and column schema, descriptions, glossary terms, foreign-key relationships, and the data product → tables scope all come from the Purview catalog.
- Tursio reads and enforces. Tursio pulls that metadata at training time to build query tables and the semantic model, and uses the data-product scope to limit which tables a question can use.
- Two catalog surfaces are used, so a connection needs access to both:
- the Data Map: the scanned schema of your dataset, and
- the Unified Catalog: the governance domain and its data products.
Because the schema comes from Purview, a Purview connection skips Refresh and the live schema change checks.
Before you begin
Set up the following in Azure and Purview first:
- A scanned dataset in Purview. The Azure SQL database or Fabric dataset must be registered and scanned so it appears in the Data Map.
- A governance domain with at least one data product that groups the tables you want to expose.
- An identity with access to Purview, either:
- a Microsoft Entra app registration (service principal) with a client secret, granted the Data Map: Data Reader role on the collection and Unified Catalog access to the governance domain; or
- a Managed Identity (Azure SQL only, see Managed Identity).
Restricted governance domains
If the governance domain uses a restricted (allow-list) mode, add the identity above as a Local Catalog Reader on the domain. Otherwise Purview returns an empty catalog and training finds no tables.
Enable Purview
- Add or edit an Azure SQL or Fabric Warehouse connection and fill in the standard connection details.
- Turn on Purview Configuration to show the Purview fields.
- Fill in the Purview fields. At minimum: Purview Tenant ID, Purview Client ID, Purview Client Secret, Purview Domain ID, and Dataset Qualified Name.
- Select Validate, then Add (or Update when editing).
Purview Configuration toggle and the first Purview fields.
Remaining Purview fields, with Allow Database Access.
Purview fields
| Field | Required | What it is |
|---|---|---|
| Purview Tenant ID | Yes | Microsoft Entra tenant ID for the Purview account (Directory (tenant) ID). |
| Purview Account Name | No | The Purview account name, for example contoso-purview. Required for private-endpoint access. |
| Purview Client ID | Yes, unless Managed Identity is on | Application (client) ID with access to the Purview account. |
| Purview Client Secret | Yes, unless Managed Identity is on | Client secret for that application. On edit, leave it blank to keep the stored secret. |
| Purview Domain ID | Yes | The governance domain ID that scopes data-product lookups. |
| Dataset Qualified Name | Yes | The Purview qualifiedName of the dataset. Fabric: https://app.powerbi.com/groups/{workspace}/datasets/{dataset}. Azure SQL: mssql://{server}/{database}. |
| Data Product IDs | No | One or more data product IDs. Type each ID and press Enter. Leave blank to use all data products in the domain. |
| Allow Database Access | No (on by default) | See Allow Database Access. |
Authentication
A Purview connection authenticates two things: the Purview catalog (for metadata) and, when database access is on, the database itself (for value sampling and foreign-key reads).
Service principal (Azure SQL and Fabric Warehouse). The default. Enter the Purview Client ID and Purview Client Secret. The same app registration authenticates the Purview catalog, and the connection's own credentials authenticate the database.
Managed Identity (Azure SQL only)
When Tursio runs on an Azure VM, an Azure SQL connection can use the VM's Managed Identity instead of stored secrets. Turn on Use Managed Identity on the connection. Fabric Warehouse connections don't have this toggle.
Use Managed Identity on an Azure SQL connection.
When it's on:
- The Client ID, Client Secret, Purview Client ID, and Purview Client Secret fields are hidden.
- Both the Azure SQL database and Purview authenticate with the VM's Managed Identity.
- Purview Tenant ID is still required.
Managed Identity prerequisites
Grant the VM's Managed Identity the same access a service principal would need: Data Map: Data Reader and Unified Catalog access in Purview, plus access to the Azure SQL database (a contained database user mapped to the Managed Identity). Tursio expects a system-assigned Managed Identity.
Allow Database Access
The Allow Database Access toggle controls whether Tursio queries the database during training, on top of the metadata it reads from Purview.
- On (default): Tursio may query the database for value sampling (example column values) and foreign-key reads, for a richer semantic model.
- Off: schema only. Tursio uses Purview metadata and never queries the database during training. Use this when your policy doesn't allow Tursio to read the data itself.
Validate and save
Validate checks the Purview fields before it tests the database connection. It reads the data products from the Unified Catalog first, then looks up the scoped tables in the Data Map, and stops at the first problem.
Purview validation messages
| Message starts with | Check |
|---|---|
| Purview requires: … | Fill in the fields it lists. |
| Purview Client Secret is required. | Enter the client secret, or turn on Use Managed Identity (Azure SQL). |
| Could not read the Purview data products. | The credentials or Managed Identity, the Purview Domain ID, and the identity's Unified Catalog roles. |
| No scoped tables found for this dataset. | The Dataset Qualified Name, the Purview Domain ID, and Data Product IDs if set. |
| Could not reach the Purview Data Map. | Network access to the Purview host and the Data Map roles. |
| No scoped table resolved in the Purview Data Map. | The Data Map roles, and that the source has been scanned. |
After you connect
- Train the connection as usual. Query tables, dimensions, measures, and joins are built from the Purview catalog, with sampled values when Allow Database Access is on.
- Ask questions like on any other connection. Questions run against the live database using the Purview-based semantic model.
- Retrain after Purview changes. Tursio doesn't run schema change checks on Purview connections, so retrain after you update the dataset in Purview.
Tips and limits
- Validate before you save. Add and Update stay disabled until validation passes.
- Passwords, secrets, and keys are encrypted at rest. With Managed Identity, no database or Purview secret is stored.
- A main connection can have one dev connection. Create dev connection is disabled with Dev connection already exists when it has one, and with Training is in progress while it trains.
- You can merge a dev connection only after its training status is Success, and not while the main connection is training.
- Dev connections are left out of All Databases search, saved queries, and global training.
- Users and Viewers don't see the Settings page. Admins and Owners add and manage connections.
- To export a database's context or import a tuned one, see Tune context.