Is it safe to create 'Database Master Key' on production database

Kiran Shah 5 Reputation points
2023-05-23T10:16:50.98+00:00

Recently, we have implemented bulk insert (import data from the file stored in Azure Blob Storage) in our application and for that there is required ‘Database Master Key’ to create external data source (i.e. Azure Blob Storage)  but somehow its not exist in our production Azure SQL database where its exist in our test Azure SQL database (So this import function works fine on test environment but not on production) .

We can create the ‘Database Master Key’ using below query.

 

CREATE MASTER KEY ENCRYPTION BY PASSWORD=

Azure SQL Database
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Alberto Morillo 32,886 Reputation points MVP
    2023-05-23T12:39:42.7033333+00:00

    It is safe, not everybody can create a database master key, only a user with Control permissions can create a database master key on the database but is your responsibility to keep the password used confidential and in a secure place.