• mili.nikolic (5/24/2015)


    Fresh install of SQL Server 2012 Express Advanced edition. I downloaded AdventureWorks2012 database but couldn't attach. After couple of hours I attached it when I connected to Management Studio via Windows Authorization, also I found that I can do that with SQL Server Authorization and my 'sa' user but i need to copy AdventureWorks2012 mdf file to my MSSQL Server installed location C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA . Someone suggested on internet to try to open Management Studio as Administrator but that didn't do anything for me.

    I understand its about privileges on files and database, I just want to know how to fix it and make it accessible. I didn't found precise advice on this matter.

    Sorry if its not on right forum.

    Sorry about English, it's not my native language.

    Normally it is enough to run the SSMS as Administrator (Right click -> Run as Administrator) and then attach the file.

    😎