Connecting Django with MSSQL server

后端 未结 3 430
心在旅途
心在旅途 2021-01-21 12:35

I\'m trying to connect my Django app to SQL Server 2016. I\'ve tried using django-pyodbc but it doesn\'t support Django 1.11. Instead I installed django-mssql 1.8. When I try to

3条回答
  •  借酒劲吻你
    2021-01-21 13:04

    Following official django documentation (currently django 3.1) django-mssql-backend should be used. Django-MSSQL-backend django database adapter is a fork of django-pyodbc-azure which:

    • Supports Django 2.2, 3.0
    • Supports Microsoft SQL Server 2008/2008R2, 2012, 2014, 2016, 2017, 2019
    • Compatible with Micosoft ODBC Driver for SQL Server, SQL Server Native Client, and FreeTDS ODBC drivers

    Other solutions django-pyodbc-azure, django-sqlserver and django-mssql as of 2020-11 look to be obsolete.

提交回复
热议问题