Connect to MSSQL Database using Flask-SQLAlchemy

前端 未结 6 531
天涯浪人
天涯浪人 2020-12-09 05:02

I\'m trying to connect to a local MSSQL DB through Flask-SQLAlchemy.

Here\'s a code excerpt from my __init__.py file:

from flask import          


        
6条回答
  •  既然无缘
    2020-12-09 05:26

    If someone still stumbled upon this issue and trying to figure out another solution then try with pymssql instead of pyodbc;

    pip install pymssql

    Connection URI would be:

    conn_uri = "mssql+pymssql://:@/"

提交回复
热议问题