Unable to establish odbc connection to MS SQL Server

2020-04-27 Thread Kirk Brown
I'm getting an error when I try to runserver. Here is my code in manage.py: DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'database', 'HOST': 'localhost', 'USER': 'user', 'PASSWORD': 'password', 'OPTIONS': {'O

Re: Unable to establish odbc connection to MS SQL Server

2020-04-27 Thread Gurmeet Kaur
Hi There, I have also implemented this in my project. The code in my settings.py is below. You could also try the same. DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'MyDbName', 'USER': 'user', 'PASSWORD': 'password', 'HOST': 'DbHost

Re: Unable to establish odbc connection to MS SQL Server

2020-04-27 Thread Darren Williams
Lets On Apr 27, 2020 10:31 PM, "Gurmeet Kaur" wrote: Hi There, I have also implemented this in my project. The code in my settings.py is below. You could also try the same. DATABASES = { 'default': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'MyDbName', 'USER': 'user'