79784687

Date: 2025-10-07 15:05:44
Score: 1
Natty:
Report link

If you are able to connect to it using odbc or SSMS but not through code and you continue to get <token-identified principal>, then you need to specify the database aka Initial Catalog.
You might have access to connnect to specific database and not the server so specifying what database will allow you to connect and succeed when connecting to it.

In python or other languages
add in correct format:

f"Initial Catalog = mydatabase;"

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lucas Szybalski