The snapshot says is it all – I used to be able to attach a database, but after i detached today then tried to attach, i kept getting this error:
http://img197.imageshack.us/img197/2574/attacht.jpg http://img197.imageshack.us/img197/2574/attacht.jpg
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Error 5 means Access Denied. The account running SQL Server has no access to the file GMATech.mdf. Grant the necessary rights:
where hostname is the name of the mahcine running SQL and instancename is the name of the SQL instance (MSSQLSERVER for default instance).