Giter Club home page Giter Club logo

Comments (10)

s-trooper avatar s-trooper commented on June 25, 2024 3

Hi, i have the same Problem. Can anyone help me? What exactly i have to upgrade/change?
My system:

Django-2.1.15
django_pyodbc_azure-2.1.0.0
ODBC Driver 17 for SQL Server

from django-pyodbc-azure.

maheshkathiriya avatar maheshkathiriya commented on June 25, 2024 3

Hi, Please check: https://pypi.org/project/django-pyodbc-azure-2019/
My Code working with mssql 2019

pip install django-pyodbc-azure-2019

DATABASES = {
    'default': {
        'ENGINE': 'sql_server.pyodbc',
        'NAME': 'djangotestdb',
        'USER': 'sa',
        'PASSWORD': '12345678',
        'HOST': 'LAPTOP-MAHESH\SQLEXPRESS',
        'PORT': '',
        'OPTIONS': {
            'driver': 'ODBC Driver 17 for SQL Server',
        },
    },
}

from django-pyodbc-azure.

s-trooper avatar s-trooper commented on June 25, 2024 1

@VarunAravinth, ty for Help. I already have had the latest Driver, but i found that django_pyodbc_azure has a hardcoded support only for SQL lower than V15. The solution for me was, upgrade to an other package:

pip install django-mssql-backend

from django-pyodbc-azure.

kevin-olbrich avatar kevin-olbrich commented on June 25, 2024

Sounds like your ODBC driver is too old(?)
I'm running SQL 2017 (Windows Edition) in production with django-pyodbc-azure using the original MS-ODBC driver.

from django-pyodbc-azure.

mythox avatar mythox commented on June 25, 2024

Hi Kevin, thx for your advise, i'm using "ODBC Driver 17 for SQL Server", I can connect to the SQL server with this driver thru window ODBC settings, but django-pyodbc-azure response v15 is not supported, might be there are some different on MSSQL 2017 Linux Edition

from django-pyodbc-azure.

mythox avatar mythox commented on June 25, 2024

my stupid fault, wrongly installed preview version of MSSQL 2019 (v15), case close, sorry for your time

from django-pyodbc-azure.

VarunAravinth avatar VarunAravinth commented on June 25, 2024

Hi Guys, I am getting the same error, v15 is not supported, I am using django-mssql-backend.
Can you help me out.

File "C:\Users\VarunAravinthN\AppData\Roaming\Python\Python38\site-packages\sql_server\pyodbc\base.py", line 384, in sql_server_version
raise NotSupportedError('SQL Server v%d is not supported.' % ver)
django.db.utils.NotSupportedError: SQL Server v15 is not supported.

from django-pyodbc-azure.

VarunAravinth avatar VarunAravinth commented on June 25, 2024

Got it fixed, I upgraded my django-sql-backend. Thanks

from django-pyodbc-azure.

VarunAravinth avatar VarunAravinth commented on June 25, 2024

@s-trooper Hi, Can you check whether SQL V15 is supported by your odbc driver, (django_pyodbc_azure), if yes, check whether you are running the latest version of that driver.
That fixed my issue.

from django-pyodbc-azure.

laibamasod avatar laibamasod commented on June 25, 2024

I have the same issue, I installed and then uninstalled django-pyodbc-azure, now im using django-mssql-backend
I get the issue of odbc not supported or
raise NotSupportedError('SQL Server v%d is not supported.' % ver)
django.db.utils.NotSupportedError: SQL Server v16 is not supported.

How do I check which version is supported? Should I reinstall mssql?

from django-pyodbc-azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.