Export and Import Bacpac file is one of the options available to migrate your database or to create a copy of it, like when you move your data from Azure SQL or Azure managed instance to on prem server, where backup\Restore is not supported.
This Article is an illustration of one of the issues when importing a bacpac file, if you face error similar to:
User, group, or role ‘XXX’ already exists in the current database.
Or There is already an object named ‘xxx’ in the database.
Here is the example for same scenario:
use master
go
create login testbin2_1 with password = 'P@ssW0rd123'
go
create login TestBin2_2 with password = 'P@ssW0rd123'
use testBin2
go
create user testbin2 for login testbin2_1
go
create user testBin2 for login testbin2_2
.
Conclusion
Catalog collation on Managed instance:
Catalog collation on Azure SQL:
For more information about Catalog collation:
CREATE DATABASE [testdb] COLLATE Latin1_General_100_CS_AS_SC
WITH CATALOG_COLLATION = SQL_Latin1_General_CP1_CI_AS;
But if you try the same on managed instance, creation of the database will fail with Error:
'CATALOG_COLLATION' is not supported in this version of SQL Server.
https://techcommunity.microsoft.com/t5/azure-database-support-blog/editing-a-bacpac-file/ba-p/368931
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.