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)')
Did you install sql_server.pyodbc
? You can install it using:
pip install sql_server.pyodbc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.