Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
SQL database in Microsoft Fabric
Removes a certificate from the database.
Important
A backup of the certificate used for database encryption should be retained even if the encryption is no longer enabled on a database. Even though the database is not encrypted anymore, parts of the transaction log may still remain protected, and the certificate may be needed for some operations until the full backup of the database is performed. The certificate is also needed to be able to restore from the backups created at the time the database was encrypted.
Transact-SQL syntax conventions
This syntax is not supported by serverless SQL pool in Azure Synapse Analytics.
DROP CERTIFICATE certificate_name
certificate_name
Is the unique name by which the certificate is known in the database.
Certificates can only be dropped if no entities are associated with them.
Requires CONTROL permission on the certificate.
The following example drops the certificate Shipping04
from the AdventureWorks
database.
USE AdventureWorks2022;
DROP CERTIFICATE Shipping04;
The following example drops the certificate Shipping04
.
USE master;
DROP CERTIFICATE Shipping04;
BACKUP CERTIFICATE (Transact-SQL)
CREATE CERTIFICATE (Transact-SQL)
ALTER CERTIFICATE (Transact-SQL)
Encryption Hierarchy
EVENTDATA (Transact-SQL)
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today