SELECT queries against Microsoft SQL Server to compute experiment results. Create a dedicated read-only login, allow network access from GrowthBook, then add the connection in Metrics and Data → Data Sources.
1. Create a read-only login
GrantSELECT only on the schema that holds experiment assignment and metric events.
dbo with your analytics schema if events live elsewhere.
2. Allow network access
If you use GrowthBook Cloud and the destination is behind a firewall, allow inbound traffic from52.70.79.40/32. That is the only address GrowthBook Cloud connects out from — see IP addresses.
SQL Server typically listens on port 1433.
Self-hosted GrowthBook runs in Docker. To reach a database on the host machine, use host.docker.internal as the server instead of localhost.
3. Add SQL Server in GrowthBook
- Go to Metrics and Data → Data Sources.
- Choose MS SQL Server (guided setup if you use a supported event tracker, or manual setup for a custom schema).
- Enter the connection fields:
- Save. GrowthBook runs a
SELECT 1query to confirm the connection.

