|
Hi people, I've got the following problem. We had our instance of SQL setup for SQL 2012 CTP3 on our dev environment. Now that SQL 2012 is out, we uninstalled the previous instance. Now that I have sql installed i'm trying to reattach some of the databases. I have the following items : Certificate, Password and Private key. When I try and run the following script i am getting the error : Can someone please help me with what i'm missing? Thanks... Update : I have been messing around with permissions etc. I have now managed to create my certificate from the files, but i still cannot attach the database. I am getting I'm giving up... i think somehow we've got a certificate mix up... thanks for your help anyway, off to create a new dev environment and backup certificates!
(comments are locked)
|
|
It sounds like you don't have permission to access the folder where the certificate is. Make sure the SQL Server service account has access rights to the folder and try again.
(comments are locked)
|
|
Not sure if this will fix it, but you are missing the "\" in the path for the certificate & key. That might have been just a formatting thing when you posted the question. Hope this helps! na... Shawn edited my post and removed them for some reason. I have been using backslashes...
May 14 '12 at 02:27 PM
jhowe
I figured as much, but I still thought that I'd point it out. ;-) You can completely disregard my answer then. =)
May 14 '12 at 02:32 PM
JohnM
(comments are locked)
|


I'm wondering whether sql can't see the files for some stupid reason, what service does sql use to access files is it NETWORK SERVICE? just so i can check permissions etc...
I was just thinking the same thing that it appears to me that it might be a security thing. The CREATE CERTIFICATE code looks correct to me.
Also, do you want to create the cert in Master?