Connect SQL Server
Detailed guide for connecting SQL Server to Data Explorer, including SSL configuration, Docker setup, and common troubleshooting.
SQL Server
1433
mssql://
Pooled Adapter
How to Connect
Method 1: Connection URI
# General format
Server=localhost,1433;Database=mydb;User Id=sa;Password=password;Encrypt=true;TrustServerCertificate=true;
Method 2: Connection Form
HostlocalhostIP address or hostname of the database serverPort1433Default port: 1433UsernamesaLogin user with database accessPassword••••••Password (AES-256 encrypted before storage)DatabasemydbDatabase name you want to exploreConnection Guardrails
SSH Tunneling (Secure)
- Supports authentication via password or Private Key (OpenSSH format).
- Automatic destination IP validation (SSRF Protection).
- Periodic tunnel health checks to maintain connectivity.
Supported Features
- sys.tables and sys.columns introspection
- Foreign key constraint mapping
- Execution plan analysis
- Stored procedure support
- View and synonym listing
- Schema-separated object browsing
- Windows and SQL Authentication
Internal Introspection Query
# Table structure analysis query
SELECT t.name AS table_name, c.name AS column_name,
ty.name AS data_type, c.is_nullable
FROM sys.tables t
JOIN sys.columns c ON t.object_id = c.object_id
JOIN sys.types ty ON c.system_type_id = ty.system_type_id
ORDER BY t.name, c.column_id;
Docker Quick Start
# Start SQL Server container
docker run -d \
--name data-explorer-mssql \
-e ACCEPT_EULA=Y \
-e SA_PASSWORD=YourStrong@Passw0rd \
-e MSSQL_PID=Developer \
-p 1433:1433 \
mcr.microsoft.com/mssql/server:2022-latest
Advanced Tuning
Connection Pooling
By default, the system maintains a connection pool to optimize response speed. For databases with limited sessions (like Supabase Free Tier), consider reducing the timeout to free up connections faster.
SSL/TLS Handshake
The system supports SSL Modes "prefer" and "require". For connections requiring custom CA certificates, you need to mount the certificate file into the /certs directory of the backend server.
Security Note
For Azure SQL Database, encryption is required. Add Encrypt=true;TrustServerCertificate=false to your connection string.
Ready to explore data?
Join the community on GitHub to contribute to the smartest local database IDE.
Launch App