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

后端 未结 9 1974
你的背包
你的背包 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:01

    I had the same problem. What eventually did work was this:

    1. Trying to restore the database (getting the error in the OP)
    2. Detaching the database
    3. Reattaching the database

    What happened in the last step was that SSDT performed an upgrade of the data files, that apparently was in an older format. When that was finished, the database started working without any problem!

提交回复
热议问题