Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sql server 2019 connection string issue from django project #171

Open
MrArif-5 opened this issue Jan 10, 2021 · 1 comment
Open

Sql server 2019 connection string issue from django project #171

MrArif-5 opened this issue Jan 10, 2021 · 1 comment

Comments

@MrArif-5
Copy link

### Issue : django.db.utils.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')
am connecting windows authentication sql serer 2019 no user name and password
My connection string : Django Project

DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'HOST': 'SAYED-ZEESHAN\SQLEXPRESS',
'NAME': 'EmployeeDB',
'PORT': '1433',
'OPTIONS': {
'DRIVER': 'SQL Server Native Client 11.0',
},
}
}

@RossRogers
Copy link
Contributor

Your pyodbc connection needs to be debugged first. Iterate on installation step 3 until you have the correct parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants