Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Unable to attach AdventureWorks database

$
0
0

Installed SQL Server 2012 Express. I have an instance of 'SQLEXPRESS' from the Discovery Report (Instance ID MSSQL11.SQLEXPRESS).

I am trying to attach the AdventureWorks2012_Data.mdf but receive the following error: 'Directory lookup for the file "c:\program files\microsoft sql server\mssql11.mssqlserver\mssql\data\adventureworks2012_log.ldf" failed with operating system error 3 (The system cannot find the path specified)"

Note that I have only a 'SQLEXPRESS' instance - so why is the attach process looking for ..\mssql11.mssqlserver\.. ?

I'm actually pointing Management Studio at the appropriate SQLEXPRESS folder in order to attach the database so how can I get Management Studio to correctly find the database?

For info, I've changed the permissions on the *.mdf file and am running Management Studio as Administrator.

TIA


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>