Login failed during the access to a Synapse dedicated SQL pool from SSMS

pmscorca 1,032 Reputation points
2024-01-07T22:00:32.2733333+00:00

Hi,

I'm trying to access to an existing Synapse dedicated SQL pool. I haven't created the existing workspace and SQL pool. For the workspace there are both the SQL admin username (that I don't know) and the SQL Microsoft Entra admin. My username is one of the Synapse administrators. I've assigned to my username also the Synapse SQL administrator. Inside the Synapse studio I've executed these scripts using the database with the same name of SQL pool (not the master database):

CREATE USER [******@domain.com] FROM EXTERNAL PROVIDER;
EXEC sp_addrolemember 'db_owner', '******@domain.com';

When I try to use SSMS to access to the dedicated SQL pool I've this error:

User's image

Perhaps, I've made any mistakes.

Any suggests to me, in order to solve this isssue, please? Thanks

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,186 questions
{count} votes

Accepted answer
  1. phemanth 13,795 Reputation points Microsoft Vendor
    2024-01-11T05:16:48.91+00:00

    @pmscorca
    Welcome to Microsoft Q&A platform and thanks for posting your question. 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.

    Ask: I'm trying to access to an existing Synapse dedicated SQL pool. I haven't created the existing workspace and SQL pool. For the workspace there are both the SQL admin username (that I don't know) and the SQL Microsoft Entra admin. My username is one of the Synapse administrators. I've assigned to my username also the Synapse SQL administrator. Inside the Synapse studio I've executed these scripts using the database with the same name of SQL pool (not the master database): Transact-SQLAI ConvertCopy

    CREATE USER [******@domain.com] FROM EXTERNAL PROVIDER;
    EXEC sp_addrolemember 'db_owner', '******@domain.com';
    

    When I try to use SSMS to access to the dedicated SQL pool I've this error: User's image Perhaps, I've made any mistakes. Any suggests to me, in order to solve this issue, please? Solution: solved updating SSMS to version 19.2
    User's image With this last version, it is updated the MFA authentication with Microsoft Entra MFA: User's image If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information. If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.

    ---Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Erland Sommarskog 116.9K Reputation points MVP
    2024-01-07T22:18:39.2133333+00:00

    Did you specify the database in the Options dialog in SSMS?

    I'm not sure how it works in Synapse, but in normal SQL Server you also need a login on server level as well. Do you have a login for ******@domain.com?


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.