---
# System prepended metadata

title: Querying SQL Server with Python

---

# Querying SQL Server with Python

Setup and steps to query SQL Server with Python

1. Install `pyodbc`
2. Install `unixodbc` ([link](https://thesystemslab.wordpress.com/2015/09/11/installing-the-pyodbc-package-on-a-mac/))
3. Install `mssql-tools` ([link](https://stackoverflow.com/questions/44527452/cant-open-lib-odbc-driver-13-for-sql-server-sym-linking-issue?rq=1))
4. Example [video](https://www.youtube.com/watch?v=aF552bMEcO4)