Thank you for your prompt reply. I am unsure that the account is the same, my
guess is that it is not. When doing the reinstall I checked to see what all
the other db servers were using, then I used that same domain account, but
that does not necesssarily mean it is what the old one was running... I
might document this db better and start backing up this key...
When I try this command against one of the user databases
ALTER MASTER KEY FORCE REGENERATE WITH ENCRYPTION BY PASSWORD =
'strongpassword'
I get this error
Msg 15151, Level 16, State 1, Line 1
Cannot find the symmetric key 'master key', because it does not exist or you
do not have permission.
I am logged in to the sa account.
Any further help with this issue vastly appreciated.
"Dan Guzman" wrote:
> Are you using the same domain service account as the original install? If
> not, you'll need to restore the service master key from a key backup file so
> that server level secrets like linked server passwords can be
> encrypted/decrypted. If you have no master key backup file and cannot use
> the original service account (e.g. it was a local account of the original OS
> install), you'll need to regenerate the master key. See ALTER MASTER KEY in
> the Books Online for details.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
> http://weblogs.sqlteam.com/dang/
>
> "Pitcairnia" wrote in message
>
> >A serious system crash took out one of our db servers. We were able to
> > recover all the databases including the system databases. The operating
> > system was reinstalled folowed by SQL Server 2005. I shut down the
> > services
> > and copied the database files and log files into the data directory. When
> > the
> > services were restarted, the databases were all present and usable with
> > the
> > following exception.
> >
> > There are a number of views in the database which use a linked server
> > named
> > ADSI which gets Active Directory data. Any time any of these views are
> > queried the following error is returned:
> >
> > An error occurred during decryption.
> >
> > Additionally I can drop the views but I cannot recreate the views. I can
> > drop the linked server but cannot recreate it. Actually that's not
> > exactly
> > accurate. I can recreate it (sp_addlinkedserver) but cannot add the login
> > (sp_addlinkedsrvlogin).
> >
> > Any help greatly appreciated, I need to get this back online ASAP.
> >
>
> >> Stay informed about: Problem after disaster recovery