Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Encrypted Database Mirror Error

Avatar of vbplayer
vbplayer asked on
Microsoft SQL Server 2008
1 Comment1 Solution2016 ViewsLast Modified:
I'm using MS SQL 2008 Version 10.0.1600.22 RTM Enterprise Edition (64-bit). I can mirror a database with a witness server without an issue. But, when I try and mirror a database that has TDE encryption on I receive the following error. I can mirror it fine before the encryption but not after the encryption. There is nothing about the error in the SQL logs for event logs.

An error occurred while starting mirror.
  Alter failed for Database 'test2'. (Microsoft.SqlServer.Smo)
     Alter failed for DatabaseEncryptionKey 'Microsoft.SqlServer.Management.Smo.ObjectkeyBase',
  (Microsoft.SqlServer.Smo)
     An exception occurred while executing a Transact-SQL Statement or batch. (Microsoft.Sqlserver.ConnectionInfo)
     Database 'test2' cannot be opened. It is in the middle of a restore. (Microsoft SQL Server, Error: 927)

ASKER CERTIFIED SOLUTION
Avatar of vbplayer
vbplayer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answers