# Microsoft SQL Server

To connect to a Microsoft SQL Server, you must have the **ODBC Driver for SQL Server** installed on your local machine. Installation instructions vary by operating system and can be found on [Microsoft's website](https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver17).

### Windows

For users on Windows, the ODBC driver can be [downloaded here](https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver17#download-for-windows).

### macOS

For users on a Mac, the easiest option is to use Homebrew:

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update
HOMEBREW_ACCEPT_EULA=Y brew install msodbcsql18 mssql-tools18
```

This will install Homebrew, and the ODBC driver. More info can be found on [Microsoft's website](https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver17).
