So I downloaded SQL 2014 on my personal laptop at home in an attempt to work on the AdventureWorks2012 Server.
I used the code given in the text book
CREATE DATABASE AdventureWorks ON
(FILENAME = ‘C:\Users\boriq\Desktop\Data\AdventureWorks2012_Data.mdf’)
FOR ATTACH_REBUILD_LOG
;
I keep getting the error message
Msg 5133, Level 16, State 1, Line 1
Directory lookup for the file “C:\Users\boriq\Desktop\Data\AdventureWorks2012_Data.mdf” failed with the operating system error 5(Access is denied.).
I assume it has to do with some permission setting that I must have overlooked. Sorry if this a vague question, but do you have any idea what can be done?