Chat with your SQL Server database in plain English
Updated 2026-08-25
An AI data analyst is most useful when it runs on your real data. This guide shows how to connect SQL Server so you can ask questions in plain English and get charts, dashboards and reports back — without writing SQL by hand.
The setup takes a few minutes: connect with a read-only user, let the analyst read the schema, and ask your first question. Your credentials are encrypted, and the analysis runs on your own AI provider key.
- 1
Get your SQL Server connection details
You need the server host, port (usually 1433), database name, and a SQL login with a username and password — entered as separate fields, not as a pasted connection string. For Azure SQL, copy the server name; encryption is left to the driver rather than to a setting you turn on in Intellrise.
- 2
Create a read-only user (recommended)
Add the login to the db_datareader role on the target database: Microsoft's own description is that members “can read all data from all user tables and views”, with no write permission. The full CREATE LOGIN, CREATE USER and ALTER ROLE sequence is at intellrise.com/help/database-requirements, which also describes what we do at connect time: we ask SQL Server what the login you gave us is permitted to do, and show you the answer without blocking the connection.
- 3
Create your account and add your AI key
Sign up, then add your own AI provider key (bring-your-own-key). If you don't have one yet, a free key takes about a minute to create — your key is encrypted and used only for your requests.
- 4
Add the SQL Server connection
Add a data source, choose SQL Server, and enter server, port, database, user and password. There is no encryption switch in the form: the connection is made through ODBC Driver 17 with no explicit encryption parameter set. Click Connect: it saves the login encrypted and then immediately dials the server, so you get either “Connected — N tables found” or the exact error SQL Server returned. A source that fails is still saved — correct it with the pencil icon and save again.
- 5
Let the AI read and annotate your schema
The analyst reads your tables, views and columns and describes what they mean. With dbt, point it at your target schema so it uses your modelled definitions.
- 6
Ask your first question in plain English
Ask something like "Sales by region this quarter vs last". On a question the analyst judges complex — a join, a query spanning two sources, several steps — it shows a readable plan and waits for you to approve it before running anything; on one it judges simple it runs first and shows you afterwards. Either way you get the same two controls on every answer: Show SQL gives you the exact query that produced the number, and Show table gives you the rows it returned with their count. That is how you check a figure instead of trusting it. Refine by chatting, then pin it to a dashboard or save it as a report.
Why connect SQL Server instead of exporting
A static export goes stale the moment you download it, and when an assistant only ever sees that exported file it has to guess what your columns mean. A connected AI data analyst reads live SQL Server data, shows you a readable plan before running anything on the complex questions (simple ones it runs first and shows you after), and saves what your fields mean against the source itself — so the next question already knows them, and answers stay current and consistent.
SQL Server: things to know
- Azure SQL expects encrypted connections, and Intellrise sends no explicit encryption parameter — so if Azure SQL refuses the connection, there is no setting on our side for you to change. Email contact@intellrise.com and we will look at it with you rather than leave you hunting for a switch.
- If you use schemas beyond dbo, make sure the read-only login can see them.
Example questions to ask your SQL Server data
- Sales by region this quarter vs last
- Average order value by customer segment
- Open support tickets by priority
Keeping it safe
- Connect with a read-only user. That grant is what actually stops a write, and it is yours to set — and when you connect we check what that account is allowed to do, and show you the answer.
- On our side every query is checked before it runs and refused if it contains a write statement — DROP, DELETE, UPDATE, INSERT and fourteen others, eighteen keywords in all. It is a keyword guard, not a full SQL parser, so it can only refuse what it can spell — which is why the read-only grant on your side is the control that actually holds. The two limit different things and neither replaces the other: your grant decides what we can be given, our guard decides what we can send.
- Connection details and your AI key are encrypted at rest.
- We train no model on your data — we do not have one; the analysis runs on your own provider key, so the terms that decide what happens to what you send are your provider's, not ours. We read the tables an answer needs into memory for that session rather than keeping a mirror of your database, and the rows an answer returns stay in your own account until you delete them.
Frequently asked questions
Yes. Use the Azure server name and a SQL login that has db_datareader. There is no encryption setting on our side to switch on — the ODBC driver handles that end of it.
Yes — the read-only role can expose views, and the analyst can query them like any table.
Related
Get your end-to-end AI business intelligence now.
Ask in plain English, pin the answer to a dashboard, export it as CSV, Excel, PDF or PowerPoint — on the free tier that whole loop runs on one database source plus Google Sheets, and the field definitions you save carry into every later session, including after a schema refresh. One exception you should hear from us rather than discover: on a Google Sheet, re-running the tab picker — even only to add a tab — clears the definitions saved for that source and reads its schema fresh. Connecting a database is the technical part: a read-only user and network access, once. If your numbers live in a spreadsheet, none of that applies: put the file in a Google Sheet and it connects on the free tier, with no read-only user and no open port. Uploading a CSV or Excel file directly is a Pro feature, and every new account gets 14 days of Pro with no card. The one thing no plan waives is your own AI provider key, and a Google Gemini key is free to create.
Every new account starts on a 14-day Pro trial with no card. After it lapses, the free tier stays free.