Share via

Synapse Serverless SQL – “Cannot find the CREDENTIAL … because it does not exist or you do not have permission” when querying external table

Victor Buzy 20 Reputation points
2026-02-27T16:57:03.6533333+00:00

Good morning everyone,

We have an issue when we try to query ours tables on SSMS:

Cannot find the CREDENTIAL ...because it does not exist or you do not have permission.

We had to do our migration for this:
Transition your Azure Synapse Analytics workspaces to private links before 1 August 2026**

So we created a new workspace 02, with the same properties than the 01 except the different settings to do the transition

However it looks that we have the same configurations for the 01 and 02 for the Storage Account IAM:

and for the storage account container IAM too:
So we do not understand what to do to be able to query our tables in SSMS.

Could you please help us?

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.

{count} votes

Answer accepted by question author
  1. Manoj Kumar Boyini 9,180 Reputation points Microsoft External Staff Moderator
    2026-02-27T18:26:14.98+00:00

    Hi Victor Buzy,

    The error “Cannot find the CREDENTIAL … because it does not exist or you do not have permission” occurs when Serverless SQL cannot find the database‑scoped credential required by your external table.

    Since you created a new Synapse workspace during the Private Link transition, the most likely cause is that credentials and external data sources were not recreated in the new workspace. These objects do not migrate automatically even if the storage configuration is the same.

    1. Check if the credential exists

    SELECT * FROM sys.database_scoped_credentials;

    If missing, recreate it:

    CREATE DATABASE SCOPED CREDENTIAL <credential_name>
    WITH IDENTITY = 'Managed Identity';

    1. Recreate or update the EXTERNAL DATA SOURCE so it references the correct credential:

    SELECT * FROM sys.external_data_sources;

    1. Grant REFERENCES permission

    GRANT REFERENCES ON DATABASE SCOPED CREDENTIAL::<credential_name> TO <user_or_group>;

    1. Ensure the workspace‑02 Managed Identity has Storage Blob Data Reader/Contributor on the storage account or container (which your screenshot shows is correct).

    The issue is not with your Storage IAM configuration the new workspace simply lacks the required database‑scoped credential and permissions. Recreating the credential, updating the external data source, and granting REFERENCES will resolve the error.

    Reference
    https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/develop-storage-files-storage-access-control

    Hope this helps, Please let us know if you have any questions and concerns.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Victor Buzy 20 Reputation points
    2026-02-27T17:12:56.73+00:00

    Actually everything works if I pass by a Authentification Microsoft Entra MFA, but not with a SQL Server Authentification like before the transition.

    I don't know if it is normal but this is what I found

    Thanks

    0 comments No comments

Your answer

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