使用 SqlPackage.exe 将 Azure 迁移到数据库到 V12 预览版导出并将数据库导入本地计算机后,我收到错误:
Error SQL72014: .Net SqlClient Data Provider: Msg 2760, Level 16, State 1, Line 1
The specified schema name "sys" either does not exist or you do not have permission to use it.
Error SQL72045: Script execution error. The executed script:
CREATE TYPE [sys].[script_deployment_databases] AS TABLE (
[logical_server] [sysname] NOT NULL,
[database_name] [sysname] NOT NULL,
UNIQUE NONCLUSTERED ([database_name] ASC, [logical_server] ASC));
事实上,在 Management Studio 中有一个用户定义的表类型,它不能被删除。
怎么解决?
我尝试使用此脚本导出所有选项。