I am trying to use the Microsoft SQL server as my database of django project but when I am trying to connect it it give me a SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 9-10: truncated \uXXXX escape
. The issue is with 'USER': 'INDIANLEO\user',
.
Here is the database connection
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'ENR',
'HOST': 'INDIANLEO',
'USER': 'INDIANLEO\user',
'PASSWORD': '',
'OPTIONS': {
'driver': 'ODBC Driver 17 for SQL Server',
}
}
}
Here is the server name and details: