Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DROP CERTIFICATE (Transact-SQL)

Applies to: 👁 Image
SQL Server 👁 Image
Azure SQL Database 👁 Image
Azure SQL Managed Instance 👁 Image
Azure Synapse Analytics 👁 Image
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 isn't encrypted anymore, parts of the transaction log might still remain protected; the certificate might 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.

👁 Image
Transact-SQL syntax conventions

This syntax is not supported by serverless SQL pool in Azure Synapse Analytics.

Syntax

DROP CERTIFICATE certificate_name

Arguments

certificate_name

The unique name by which the certificate is known in the database.

Remarks

Certificates can only be dropped if no entities are associated with them.

Permissions

Requires CONTROL permission on the certificate.

Examples

The following example drops the certificate Shipping04 from the AdventureWorks database.

USE AdventureWorks2022;

DROP CERTIFICATE Shipping04;

Examples: Analytics Platform System (PDW)

The following example drops the certificate Shipping04.

USE master;

DROP CERTIFICATE Shipping04;

Related content


Feedback

Was this page helpful?

Additional resources