Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all articles
Browse latest Browse all 7696

Unable to attach DB to MSSQL server

$
0
0

I´m a newbie starting to learn SQL.

When I try to attach AdventureWorks db to sql server express 2014 I get the following error message from SQL SMS

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

Additional information

          An exception occured while executing a Transact-SQL statement or batch.
          (Microsoft.SqlServer.ConnectionInfo)

    User ' guest ´ does not have permission to run DBCC checkprimaryfile. (Microsoft SQL Server ,
    Error : 2571)

I am an admin user and have taken ownership of the folders I think I need but this persists.

Since I installed sql server I had to create a new user acct because of problems. Could this have anything to do with it ?

I have tried opening SQL SMS as admin as suggested by many. Have copied db mdf file to appropriate directory etc but non of this works for me.

Does anyone have any clues ?

Thanx


Viewing all articles
Browse latest Browse all 7696

Trending Articles