Connect to Azure SQL Database from Mac
Use the Azure SQL Database server hostname, target database and a SQL user with access to that database.
Before you start
Section titled “Before you start”Have your database provisioned and its SQL credentials ready. Your Mac needs a network route to its public or private endpoint.
This guide covers Azure SQL Database. For SQL Server running on an Azure virtual machine, use the server connection guide.
Find your connection details
Section titled “Find your connection details”Open the database in the Azure portal. Its Overview shows the server name; copy the full hostname and the database name. Microsoft documents these fields in Get server connection information.
For the standard Azure public cloud endpoint, the hostname has this form:
your-server.database.windows.netUse port 1433. Enter the SQL user supplied for the database, rather than your Azure portal sign-in.
For public access, allow your Mac’s outbound public IP through the database’s IP firewall rules. If you use a VPN, check the IP Azure sees after the VPN connects.
For private access, connect your Mac to the required network and use its DNS configuration. Keep the normal server hostname; Microsoft’s Private Link guidance requires it even for private endpoints.
Connect to Azure SQL Database in TableAI
Section titled “Connect to Azure SQL Database in TableAI”- Open a new connection and select SQL Server.
- Enter the full server hostname as Host.
- Set Port to
1433. - Enter the target Database.
- Enter your SQL User and Password.
- Keep SSL Mode set to Verify Full.
- Click Test.
- Click Save & Connect after a successful test.

For URL import, use the SQL Server URL format with your Azure hostname and database.
TLS and network access
Section titled “TLS and network access”Azure SQL Database requires encryption. Verify Full also verifies the server identity, using the hostname and certificate chain. See Microsoft’s TLS connection guidance.
Use an SSH tunnel when your network provides access through an SSH server. That server needs a route to the database; TLS remains a separate connection setting.
If it does not connect
Section titled “If it does not connect”| Error or symptom | Check |
|---|---|
| Client IP is not allowed | Current outbound public IP and Azure firewall rules. |
| Timeout | Public access settings, private network route, VPN and DNS. |
Login failed for user |
SQL credentials and target database; follow error 18456. |
| Certificate validation failure | Full server hostname and TLS repair. |
For other failures, use connection failed.
Related
Section titled “Related”Return to the SQL Server overview or continue with browse and search.