Thanks Imar, I fixed it myself by changing the permission of the two database files(mdf&ldf). And it works well in VS until I reached Page 505 where I'm supposed to add new tables to the PlanetWrox db, I found that the database is in "Recovery Pending" state, which I can't add or browse the database. I should mention that after changing the permissions and connect the database to VS, VS asked me to upgrade the database, I pressed Yes. Also in SSMS the following message appears when I try to open the db:
Quote:
|
The database cannot be opened because it is version 782. This server supports version 706 and earlier. A downgrade path is not supported
|
I'm using: VS 2015, SSMS 2014 and SQL Server 2012