How do I copy SQL Server 2012 database to localdb instance?

后端 未结 9 1885
你的背包
你的背包 2021-02-04 00:49

I\'m looking to copy a SQL Server 2012 Standard database to my localdb instance. I\'ve tried the wizard which complains that localdb isn\'t a SQL Server 2005 or later expres

9条回答
  •  迷失自我
    2021-02-04 01:13

    There is known limitation (a real bug, in fact) for localDB. It will fail any RESTORE with MOVE whenever your database files are located in different folders.

    You have to restore in the original folders (no MOVE). Use cmd tool such as SUBST if you need to fake a drive:/path.

提交回复
热议问题