SQL Server 2008 Express failed to attach mdf file

后端 未结 3 866
野性不改
野性不改 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

提交回复
热议问题