To analyse your Microsoft SQL Server data in Claude, ChatGPT or another AI client, connect it to Bonnard on the Data page. Then give people access to it.
Microsoft SQL Server at a glance
Fact
Microsoft SQL Server
Credential
A read-only login
Port
1433 by default
SSL
require by default
Network
A public hostname or IP address. Bonnard cannot reach private networks
Tenancy
None, Row-level security or Database per customer (Azure SQL Database only)
AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAdd data sourceAdd data sourceData sources (2)Acme productionPostgreSQL · No tenancyConnectedAcme productionPostgreSQL · No tenancyConnectedAcme warehouseClickHouse · No tenancyConnectedData sources (1)Acme warehouseClickHouse · No tenancyConnectedData sources (2)Acme productionPostgreSQL · setup not finishedConnection test failedContinue setupAcme warehouseClickHouse · No tenancyConnectedNo data sources yet. Add a database or an integration to start asking questions about it.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAdd a data sourceSearch, e.g. Postgres, BigQuery or PostHogDATABASES AND WAREHOUSESPostgreSQLIncluding Supabase, Neon and RDSPostgreSQLIncluding Supabase, Neon and RDSBigQueryGoogle Cloud data warehouseAmazon RedshiftAmazon data warehouseClickHouseSelf-hosted or ClickHouse CloudDuckDB / MotherDuckHosted DuckDBMySQL / MariaDBIncluding PlanetScale and RDSMicrosoft SQL ServerIncluding Azure SQLINTEGRATIONSPostHogProduct analyticsPostHogProduct analyticsAdd a data source1Source2Connect3DoneRead-onlyBonnard only reads your data.Connection details areencrypted at rest.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAdd a data sourceSearch, e.g. Postgres, BigQuery or PostHogDATABASES AND WAREHOUSESPostgreSQLIncluding Supabase, Neon and RDSPostgreSQLIncluding Supabase, Neon and RDSBigQueryGoogle Cloud data warehouseAmazon RedshiftAmazon data warehouseClickHouseSelf-hosted or ClickHouse CloudDuckDB / MotherDuckHosted DuckDBMySQL / MariaDBIncluding PlanetScale and RDSMicrosoft SQL ServerIncluding Azure SQLINTEGRATIONSPostHogProduct analyticsPostHogProduct analyticsAdd a data source1Source2Connect3DoneRead-onlyBonnard only reads your data.Connection details areencrypted at rest.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsHostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsServer=tcp:acme.database.windows.net,1433;Database=acme;User ID=acme_reader;Password=acme-demo-secretFill fieldsFill fieldsHostdb.internalPort (optional)1433DatabaseUsermcp_readerPasswordenter secret valueEncrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsFilled connection details from the string.Hostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsHostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsServer=tcp:acme.database.windows.net,1433;Database=acme;User ID=acme_reader;Password=acme-demo-secretFill fieldsFill fieldsHostdb.internalPort (optional)1433DatabaseUsermcp_readerPasswordenter secret valueEncrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsFilled connection details from the string.Hostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAcme productionAcme production is connectedOnly admins can use it so far.Try it in your AI clientUsing Bonnard's Acme production, what data do I have and what are three questions I could ask?CopyGive accessGive accessOpen Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.DataAcme productionAcme production is connectedYou can close this tab and carry on in Claude. It can use Acme production straight away.Open Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.Connected to ClaudeConnected to ClaudeAcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAcme productionAcme production is connectedOnly admins can use it so far.Try it in your AI clientUsing Bonnard's Acme production, what data do I have and what are three questions I could ask?CopyGive accessGive accessOpen Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.DataAcme productionAcme production is connectedYou can close this tab and carry on in Claude. It can use Acme production straight away.Open Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.Connected to ClaudeConnected to Claude
Requirements
The Editor role or higher in your Bonnard workspace.
A Microsoft SQL Server login that can create logins and database users.
SQL Server authentication on. On Azure SQL, Microsoft Entra-only authentication must be off.
1. Create a read-only login
Agents can query only the tables that this login can read.
SQL
-- In master: the login Bonnard connects asCREATE LOGIN mcp_reader WITH PASSWORD = '<password>';-- In your database. On Azure SQL Database, connect to it directly:-- USE does not switch databases there.CREATE USER mcp_reader FOR LOGIN mcp_reader;-- Run this line once for each schema agents should query. Grant SELECT and nothing more:-- Bonnard adds no read-only check on SQL Server, so this grant is the limitGRANT SELECT ON SCHEMA::<schema> TO mcp_reader;
Copied
The grant also covers tables that you add later.
2. Allow Bonnard’s IP addresses
If your database has an IP allowlist, add Bonnard’s IP addresses to it for port 1433. On Azure SQL Database, add them
as server-level IP firewall rules.
3. Start the connection
In your AI client
The agent offers a form link only while the workspace has no data source, or only the sample.
Ask:
Connect my SQL Server database to Bonnard. The host is <host> and the login is mcp_reader.
Open the link that the agent gives.
Enter the password in the form. Never put it in the chat.
In the console
In the console at app.bonnard.ai, select Data, then Add data source, then Microsoft SQL Server.
AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAdd a data sourceSearch, e.g. Postgres, BigQuery or PostHogDATABASES AND WAREHOUSESPostgreSQLIncluding Supabase, Neon and RDSPostgreSQLIncluding Supabase, Neon and RDSBigQueryGoogle Cloud data warehouseAmazon RedshiftAmazon data warehouseClickHouseSelf-hosted or ClickHouse CloudDuckDB / MotherDuckHosted DuckDBMySQL / MariaDBIncluding PlanetScale and RDSMicrosoft SQL ServerIncluding Azure SQLINTEGRATIONSPostHogProduct analyticsPostHogProduct analyticsAdd a data source1Source2Connect3DoneRead-onlyBonnard only reads your data.Connection details areencrypted at rest.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAdd a data sourceSearch, e.g. Postgres, BigQuery or PostHogDATABASES AND WAREHOUSESPostgreSQLIncluding Supabase, Neon and RDSPostgreSQLIncluding Supabase, Neon and RDSBigQueryGoogle Cloud data warehouseAmazon RedshiftAmazon data warehouseClickHouseSelf-hosted or ClickHouse CloudDuckDB / MotherDuckHosted DuckDBMySQL / MariaDBIncluding PlanetScale and RDSMicrosoft SQL ServerIncluding Azure SQLINTEGRATIONSPostHogProduct analyticsPostHogProduct analyticsAdd a data source1Source2Connect3DoneRead-onlyBonnard only reads your data.Connection details areencrypted at rest.
4. Test and connect
In the console
Console only
Enter the login’s details from the table below.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsHostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsServer=tcp:acme.database.windows.net,1433;Database=acme;User ID=acme_reader;Password=acme-demo-secretFill fieldsFill fieldsHostdb.internalPort (optional)1433DatabaseUsermcp_readerPasswordenter secret valueEncrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsFilled connection details from the string.Hostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsHostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsServer=tcp:acme.database.windows.net,1433;Database=acme;User ID=acme_reader;Password=acme-demo-secretFill fieldsFill fieldsHostdb.internalPort (optional)1433DatabaseUsermcp_readerPasswordenter secret valueEncrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.DataConnect a data sourceConnection nameAcme productionImport from connection string (optional)Server=tcp:host,1433;Database=database;User ID=user;Password=passwordFill fieldsFilled connection details from the string.Hostacme.database.windows.netPort (optional)1433DatabaseacmeUseracme_readerPassword••••••••••••••••Encrypted at rest.Advanced: SSL mode, CA certificateAllow our IP addressesIf your database is firewalled, allowlist these egress IPs so we can reach it:34.187.7.127These addresses are stable. We will give advance notice before any change.Test and connectTest and connectBackTesting connection...BackAdd a data sourceSource2Connect3DoneNeed help?Setup guideConnection details areencrypted at rest.
Select Test and connect. Bonnard connects and reads the tables.
Microsoft SQL Server connection fields
Field
Enter
Connection name
A name for this database, for example Production.
Import from connection string (optional)
For example, Server=tcp:<host>,1433;Database=<database>;User ID=<user>;Password=<password>. Then select Fill fields.
Host
The server’s public hostname or IP address, for example <server>.database.windows.net on Azure SQL Database.
Port
1433, unless your server listens on another port. For a named instance, enter its fixed port.
Database
The database to read.
User and Password
The read-only login from step 1.
SSL mode
Under Advanced. require, the default, encrypts without validating the certificate. verify-full validates it. Use disable only for a server with no TLS. For a private CA, paste its bundle into CA certificate (PEM).
A failed test keeps a draft without the password. Select Continue setup on its card on the Data page. While no data source is connected, the agent also gives a resume link. Exit setup removes it. A refused host or a deleted data source’s name keeps no draft.
Make sure that it is connected
In your AI client
Ask:
Which tables can you read in <connection name>?
The agent calls explore_schema and shows the tables. An Editor first adds themselves on the Access tab.
In the console
A setup started in the console shows <name> is connected and who can use it. Select Give access to change that.
AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAcme productionAcme production is connectedOnly admins can use it so far.Try it in your AI clientUsing Bonnard's Acme production, what data do I have and what are three questions I could ask?CopyGive accessGive accessOpen Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.DataAcme productionAcme production is connectedYou can close this tab and carry on in Claude. It can use Acme production straight away.Open Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.Connected to ClaudeConnected to ClaudeAcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAcme productionAcme production is connectedOnly admins can use it so far.Try it in your AI clientUsing Bonnard's Acme production, what data do I have and what are three questions I could ask?CopyGive accessGive accessOpen Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.DataAcme productionAcme production is connectedYou can close this tab and carry on in Claude. It can use Acme production straight away.Open Acme production Add a data sourceSourceConnectDoneNeed help?Setup guideConnection details areencrypted at rest.Connected to ClaudeConnected to Claude
Set tenancy
In the console
Console only
A new data source starts with None. To change it, select the data source’s Tenancy tab. See Tenancy.
AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAcme productionAcme productionTables (4)Tables (4)AccessAccessTenancyTenancySettingsSettingsTenancy typeNo tenancyNoneEveryone with access seesevery rowRow-level securityA policy filters eachcustomer's rowsDatabase per customerEach customer has theirown databaseAvailable on Azure SQLDatabase only, whichrefuses queries that nameanother database. Wecheck the server when yousave.Tenancy typeRow-level security · Tenant ID column not setNoneEveryone with access seesevery rowRow-level securityA policy filters eachcustomer's rowsDatabase per customerEach customer has theirown databaseAvailable on Azure SQLDatabase only, whichrefuses queries that nameanother database. Wecheck the server when yousave.ThepolicyfiltersonSESSION_CONTEXT(N'tenant_id'),whichBonnardsetstoeachcustomer'stenantID.SeesetupSQLTenant ID column (optional)Select a table…ColumnSelect a column…Tenancy typeDatabase per customer · customer_{tenant_id}NoneEveryone with access seesevery rowRow-level securityA policy filters eachcustomer's rowsDatabase per customerEach customer has theirown databaseAvailable on Azure SQLDatabase only, whichrefuses queries that nameanother database. Wecheck the server when yousave.Reference databasecustomer_northwindDatabase namesFollow a patternSet each customercustomer_{tenant_id}Tenant ID acmecustomer_acme. A customer's database can be overridden on the Access tab.AcmeOverviewOverviewCONFIGUREDataDataContextContextActivityActivityCustomersCustomersCONTENTChartsChartsDashboardsDashboardsSettingsSettingsConnect your AI clientConnect your AI clientAMAlex Morganalex@acme.exampleDataAcme productionAcme productionTables (4)Tables (4)AccessAccessTenancyTenancySettingsSettingsTenancy typeNo tenancyNoneEveryone with access seesevery rowRow-level securityA policy filters eachcustomer's rowsDatabase per customerEach customer has theirown databaseAvailable on Azure SQLDatabase only, whichrefuses queries that nameanother database. Wecheck the server when yousave.Tenancy typeRow-level security · Tenant ID column not setNoneEveryone with access seesevery rowRow-level securityA policy filters eachcustomer's rowsDatabase per customerEach customer has theirown databaseAvailable on Azure SQLDatabase only, whichrefuses queries that nameanother database. Wecheck the server when yousave.ThepolicyfiltersonSESSION_CONTEXT(N'tenant_id'),whichBonnardsetstoeachcustomer'stenantID.SeesetupSQLTenant ID column (optional)Select a table…ColumnSelect a column…Tenancy typeDatabase per customer · customer_{tenant_id}NoneEveryone with access seesevery rowRow-level securityA policy filters eachcustomer's rowsDatabase per customerEach customer has theirown databaseAvailable on Azure SQLDatabase only, whichrefuses queries that nameanother database. Wecheck the server when yousave.Reference databasecustomer_northwindDatabase namesFollow a patternSet each customercustomer_{tenant_id}Tenant ID acmecustomer_acme. A customer's database can be overridden on the Access tab.
Troubleshooting
Host resolves to a private or reserved address.
Use a public hostname or IP address. Host is a private or reserved address. has the same fix.
Couldn't reach <host>
Make sure that Host, Port and your allowlist (step 2) are correct.
Signed in, but couldn't read the tables
The login cannot read the table list. Select Show details for the database’s own message.
A table is missing
Grant SELECT on its schema. Then select Re-scan tables on the data source’s Settings tab.
Change or remove
In the console
Console only
On the data source’s Settings tab:
Edit connection changes the connection details.
Re-scan tables reads the table list now. Bonnard reads it at approximately 6-hour intervals.
Delete data source needs the Admin role. Select Delete, then Delete data source. Its dashboards and charts stop running until you connect one with the same name and engine. Then give access again.
To rename the data source, select its name in the page header.