Question : unlocking a read only file

OK I got a step by step learning book, that came with a CD with SQL mdf database setup. So I install the CD which simply loads the .mdf & .ldf & other things to my harddrive..

But I can install nothing, because it is read-only. I get "Access denied". Simple I say, just un-click the read-only & apply. It gives no error, but does not alter the read only at all.  So since the read only appears to be on the folders & not the files in the folders I try moving the files to my own folder.. But the read-only lock materializes on my folder.

The book seems to want to walk you through the installation procedure, but mentions nothing about this read-only crap.

I felt so good about successfully installing SQL server.. To be done in by a simple Read-only lock.

PS. Operating system is Windows 7.

Answer : unlocking a read only file

>>When I try the script the book gives me I get the error "Access denied"

Grant full permission to the "NETWORK SERVICE" user to that folder.

Then try to execute sp_attach_db...
Random Solutions  
 
programming4us programming4us