1
DATABASES = {
    'default': {
        'ENGINE': 'sql_server.pyodbc',
        'NAME': 'HQ-2632',
        'USER': '*****',
        'PASSWORD': '*****',
        'HOST': 'myserver.database.windows.net',
        'PORT': '',

        'OPTIONS': {
            'driver': 'SQL Server Native Client 11.0',
        },
    },
}


Error: ('IM002', '[IM002] [Microsoft ][ODBC Driver Manager]Data source name not found, and no default driver specified (0) (SQLDriverConnect)')

1 Answer 1

1

Did you install sql_server.pyodbc? You can install it using:

pip install sql_server.pyodbc
Sign up to request clarification or add additional context in comments.

1 Comment

yes i have installed it...still getting the same error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.