Problem with Azure SQL connection from Python. pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][Administrador de controladores ODBC] No se encuentra el nombre del origen de datos y no se especificó ningún controlador predeterminado (0)

Miguel Angel Monedero Esteban 31 Reputation points
2024-01-28T10:18:57.61+00:00

Good morning: I have a trouble with then connection from local Python script to Azure SQL Database. Python

OBDC

I think that all is properly configurated, but I don't know what could be the problem.

Can anybody help me?

Tanks and regards.

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. SSingh-MSFT 16,371 Reputation points Moderator
    2024-01-29T06:36:29.3266667+00:00

    Hi Miguel Angel Monedero Esteban •,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: I have a trouble with then connection from local Python script to Azure SQL Database.

    Solution: Changing connection string worked as mentioned in the above answer with screenshot.

    If you have any other questions or are still running into more issues, please let me know.

    Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    Thanks

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Miguel Angel Monedero Esteban 31 Reputation points
    2024-01-28T10:40:04.9+00:00

    Good morning: I have change the connection string and now, it works. Python

    Can you close this issue? Tanks and regards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.