Comments (5)
It seems like you're using Windows authentication based on the "domain\username" format. Does your machine have permissions to connect to your database?
The issue you linked is not related unless your SQL server is running on a Linux-based machine.
from mssql-django.
If you are using windows authentication, please remove the "USER" and "PASSWORD" field.
from mssql-django.
@mShan0 @dauinsight Thanks for your replies!
It seems like you're using Windows authentication based on the "domain\username" format. Does your machine have permissions to connect to your database?
I can connect using Pycharm (not in the docker container), so I would think so. The Pycharm connection parameters look pretty basic (ie there aren't any extra flags that I can see, aside from the authentication being "domain credentials").
If you are using windows authentication, please remove the "USER" and "PASSWORD" field.
Then how would I pass the USER & PASSWORD? I took those parameters out, and the message was No Kerberos Credentials Available
Another question: Should the domain in domain\username be domain in the extra parameters string?
Thanks!
from mssql-django.
Your DATABASES should look something like this
DATABASES = {
"default": {
"ENGINE": "mssql",
"NAME": "my_database_name",
"USER": "DOMAIN\\username", # 2 of "\" to escape the character
"HOST": "localhost", # or DB's IP address
"PORT": "1433",
"OPTIONS": {"driver": "ODBC Driver 18 for SQL Server",
"extra_params": "Trusted_Connection=Yes;"},
},
}
Did connecting with PyCharm only work when you provided a password?
from mssql-django.
I tried the database parameters above (though I have ODBD Driver 17 installed), and I still got the same No Kerberos Credentials available
error. And I did have to use the password when using Pycharm.
I'm thinking of creating a FreeTDS docker container to give that a try. I believe the server is SQL Server 11 (2012?), would that mean I should use an earlier driver, or would FreeTDS be a better option?
from mssql-django.
Related Issues (20)
- Errors Running Tests with 1.4.1 HOT 5
- [QUESTION] Timezone related impact when upgrading to latest version. HOT 2
- UUID stored with hyphens causes DB error in 1.4.1 HOT 6
- [BUG] - func subtract_temporals in operations.py summing a list + tuple in case the list is empty HOT 1
- SQL query contains the percent sign that should remain, for example in a LIKE SQL query HOT 4
- [BUG] - Degradation caused by DatabaseIntrospection.get_table_list HOT 3
- Datetime conversion issue with USE_TZ and settings.TIME_ZONE != 'UTC'? HOT 2
- [42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near ')' ... Mssqlserver does not support COUNT_BIG (expr) HOT 6
- file not found (0) (SQLDriverConnect)") HOT 2
- Fail to connect to database mac os with M2 HOT 2
- [QUESTION] Why is supports_ignore_conflicts = False HOT 1
- Setting a default value for fields do not propagate to database HOT 1
- SQL Server 2005 compatibility issue- migration failure with filtered index queries HOT 2
- How to enable REGEXP_LIKE function on Azure SQL Server HOT 2
- [QUESTION] HOT 3
- [QUESTION] How to use executemany with raw query? HOT 3
- Named filter not working HOT 2
- [QUESTION] SQL Server does not support JSONFields. HOT 2
- CursorWrapper._as_sql_type should handle bytes values HOT 3
- Unable to connect from Docker container running django to SQL Server using the FreeTDS driver HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mssql-django.