user409756
user409756

Reputation: 81

Cannot find the certificate

We get a T-SQL (SQL Server 2008 R2) error on BACKUP CERTIFICATE: ERROR_NUMBER 15151, SEVERITY 16, STATE 1, PROCEDURE -, LINE 8, MESSAGE: Cannot find the certificate 'certificate1', because it does not exist or you do not have permission.

We can see the certificate in master.sys.certificates.

Our pseudo-code:

To try to work-around the error, we tested three ways with the BACKUP CERTIFICATE code in a different databases each time, including db1 and master. All get the same error.

Any ideas? Thanks.

Upvotes: 3

Views: 7803

Answers (1)

user409756
user409756

Reputation: 81

We tried again, running BACKUP CERTIFICATE in the master DB, and it worked this time.

Upvotes: 5

Related Questions