Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Connect to Azure SQL Server using ODBC Driver 18 for SQL Server with a "@" in my user name #1385

Open
shadiqurrahaman opened this issue Oct 26, 2024 · 2 comments

Comments

@shadiqurrahaman
Copy link

I am encountering an issue when attempting to connect to my Azure SQL Server database using pyodbc and the ODBC Driver 18 for SQL Server on Ubuntu. Below are the details:

Environment

OS: Ubuntu
ODBC Driver: ODBC Driver 18 for SQL Server
pyodbc Version: 5.2.0
Python Version: Python 3.12.3

Connection Details:

Server: martins.database.windows.net
Database: Stage-MartinsPoint
Username: insightin-martinpoint@martins-point
Password: matins123

Issue

I am getting the error message

Connection failed: ('42000', "[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Cannot open server 'martins-point' requested by the login.

I have tried to double cote like "insightin-martinpoint@martins-point" and also "insightin-martinpoint//@martins-point"

is there any way to fix this?

@WhiteWolf1776
Copy link

Is this a sql login or a microsoft "entra" account?

@shadiqurrahaman
Copy link
Author

This is a SQL login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants