Hi people,
I'm having trouble decrypting a database which was originally encrypted on another SQL server. The error message I get during the decryption is in the title, these are the steps I took so far:
- Encrypt DB on SQL Server 1
- Create Backup of DB on SQL Server 1
- Migrate DB to SQL Server 2
- Clean personnel data from DB per SQL on SQL Server 2
- Attempt to re-encrypt the DB on SQL Server 2 (because the JobServer was complaining about encryption)
- Get error message
We are attempting this because we want to make the current production environment in to a development environment. Transport packages were not imported in the intended order due to emergency changes and human errors, so we'd like to correct discrepancies between our environments by turning our PROD to DEV. I have attempted this in the past by creating a transport package containing of all customisations from PROD and importing this into a clean installed environment. This procedure took a considerable amount of time (with multiple attempts), so this time I though "hey let's just clean PROD data" and here we are.
My questions are the following:
- Is there still a way to decrypt the DB? Or is the public key created using a combination of SQL Server ID and DB ID?
- Has anyone figured our a best practice for ridding an environment of personnel data?
Thank you in advance!
Ryu