I am trying to do a daily restore from azure sql database (elastic pool) into a managed instance. I have tried to export and import the bacpac file but that failed with the following error:
TITLE: Microsoft SQL Server Management Studio
Could not import package.
Warning SQL72012: The object [XTP] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Warning SQL72012: The object [XTP] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Warning SQL72012: The object [data_0] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Warning SQL72012: The object [log] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box.
Error SQL72014: .Net SqlClient Data Provider: Msg 102, Level 16, State 30, Line 1 Incorrect syntax near 'type'.
Error SQL72045: Script execution error. The executed script:CREATE USER [**************] WITH SID = 0x6B6F4FABE3FFA848BAFB6C956D9A7E9C, TYPE = E;
I have also tried to use the automation accounts to execute powershell but that also didn't seem to support the managed instance.
How can I restore these sql databases into the managed instance?
TYPE
isn't a keyword forCREATE USER
, as the error is telling you. – Larnu