create script of existing database scoped credential

Ömer Faruk Özsakarya 81 Reputation points


We are using Azure Dedicated SQL Pool. Some external tables were defined 2 or 3 years ago. These external tables point some zipped files in blob storage.
In order to create the external tables, some credentials were created.

How can I find the create script of these database scoped credentials?
I want to find out:

  • whether storage access key or shared access signature is used
  • if shared access signature is used, I would like to see the expiration date


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.
4,140 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 73,811 Reputation points Microsoft Employee

    Hello @Ömer Faruk Özsakarya ,

    Thanks for the question and using MS Q&A platform.

    To import a file from Azure Blob storage using a shared key, the identity name must be SHARED ACCESS SIGNATURE. To load data into Azure Synapse Analytics, any valid value can be used for identity.

    You may checkout the similar thread - CREATE DATABASE SCOPED CREDENTIAL in Azure Synapse studio for SQL Serverless pool.

    For more details, you may refer to Create and use native external tables using SQL pools in Azure Synapse Analytics and CREATE DATABASE SCOPED CREDENTIAL (Transact-SQL).

    Hope this will help. Please let us know if any further queries.


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful