Sample Header Ad - 728x90

Error: "The certificate cannot be dropped because one or more entities are either signed or encrypted using it."

10 votes
2 answers
20790 views
I have a certificate I would like to remove from the database. If I issue the command DROP CERTIFICATE I get the error The certificate cannot be dropped because one or more entities are either signed or encrypted using it According to Jason Strate, I should be able to find out what's signed by the certificate. The following query returns 0 rows: SELECT OBJECT_SCHEMA_NAME(co.major_id) + '.' + OBJECT_NAME(co.major_id) FROM sys.certificates c INNER JOIN sys.crypt_properties co ON c.thumbprint = co.thumbprint WHERE co.crypt_type_desc = 'SIGNATURE BY CERTIFICATE' AND c.name = 'FooCert' I've also tried decoupling the entities per this SO question. https://stackoverflow.com/questions/52460/how-do-i-find-and-decouple-entities-from-a-certificate-when-upgrading-ms-sqlserv How can I remove the dependencies on this cert so I can remove it?
Asked by Geoff Dawdy (1143 rep)
Jun 7, 2016, 07:35 PM
Last activity: Oct 31, 2018, 01:38 PM