title: SQLAlchemy Setup for Microsoft SQL Server 18 ODBC
body: <p>I'm actually asking this question as I have recently struggled to get SQLAlchemy working with SQL Server ODBC Driver 18 on a Mac and have not seen an up-to-date description that worked.</p>
  <p>NB: <code>'TrustServerCertificate': 'yes'</code> is very key for a lot of setups and knowing where and how to express it in the connection string is not immediately obvious.</p>
  <p>This works (as @ 7 Sep 2022) with the MSSQL ODBC driver instructions at: <a href="https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver16#microsoft-odbc-18" rel="nofollow noreferrer">Install the Microsoft ODBC driver for SQL Server (macOS)</a></p>