SQL Server version error while attaching a mdf file

前端 未结 2 1715
长情又很酷
长情又很酷 2021-01-29 00:06

TITLE: Microsoft SQL Server Management Studio

Attach database failed for Server \'DESKTOP-MR6JCUA\'. (Microsoft.SqlServer.Smo)

ADDITIONAL

2条回答
  •  隐瞒了意图╮
    2021-01-29 00:50

    Please select Data source as .\sqlexpress intead of (localdb)\MSSQLLocalDB

    For example, try to set the Database connection string as

    Data Source=.\sqlexpress;AttachDbFilename=C:\\...\\XXX.mdf; Integrated Security=True;
    

提交回复
热议问题