SQL Server 2008 Express failed to attach mdf file

后端 未结 3 858
野性不改
野性不改 2021-01-21 04:47

Here is the message. What\'s wrong with it? Is it a installtion problem?

TITLE: Microsoft SQL Server Management Studio

Cannot show requested dialog.


相关标签:
3条回答
  • 2021-01-21 05:09

    Are you trying to attach the mdf using SQL Authentication, or Windows Authentication? If using SQL Auth, you might try Windows Auth instead.

    You might also want to check out this MSDN forum post, or this post which suggests using the single file version of database attach:

    USE master;
    GO
    EXEC sp_attach_single_file_db @dbname = 'AdventureWorks',  @physname = N'f:\dataAdventureWorks_Data.mdf';
    

    Edit: When running this script, you gotta be logged in as a user with at least dbcreator rights. You may also try CREATE DATABASE FOR ATTACH as shown at this blog post

    0 讨论(0)
  • 2021-01-21 05:25

    I prefer Windows authentication, and had the same error with SQL Server Standard Edition because my Windows authentication login didn't have enough privileges ( was only 'public' role ) . So logging as "sa" and adding "sysadmin" role for my Windows account login solved the problem.

    0 讨论(0)
  • 2021-01-21 05:28

    Had same issue. it appears that the error raised because i've connect to SQL SERVER 2012 INSTANCE with Sql Server 2008 R2 management studio. hope it help someone else too

    0 讨论(0)
提交回复
热议问题