I have made a backup of my SQL Azure in a bacpac file and when I try to import the bacpac in localdb it always fail.
Here is the command I use:
PS C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin> .\SqlPackage.exe /Action:Import
/SourceFile:"C:\Users\S\Desktop\MyDb.bacpac"
/TargetConnectionString:"Data Source=(localdb)\v11.0;Initial Catalog=MyDb; Integrated Security=true;"
And here is the error message:
*** Error importing database:Data cannot be imported into target because it
contains one or more user objects. Import should be performed against a new, empty
database.
Error SQL0: Data cannot be imported into target because it contains one or more
user objects. Import should be performed against a new, empty database.
My machine is newly installed, and I have never used localdb at all.