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
I had the same issue, and after doing a little online research I came across an ingenious way to get it to work (albeit quite hacky). Basically, you:
SqlLocalDb c tmp -s
).SqlCmd -E -S -Q "RESTORE DATABASE ..."
).SqlLocalDb p tmp
).SqlLocalDb d tmp
).SqlLocalDb c persistent -s
).SqlCmd -E -S -Q "Create Database On (Filename = ') For Attach"
.And hopefully it should work. See here for original idea.
Edit: Added Jason Brady's correction of the create command.