【发布时间】:2020-12-18 14:31:16
【问题描述】:
我正在尝试在 Azure 门户中导入数据库。我从中导出的原始数据库位于另一台服务器上,但设置与我尝试导入的位置相同。我通过转到目标服务器并单击导入按钮来导入。然后,我选择要导入的存储帐户、容器和 bacpac 文件。我检查导入的数据库大小和类型是否与 bacpac 文件相同。我还仔细检查了导入时的排序规则是否与 bacpac 中的排序规则相同。然后我确认。在给出以下错误消息之前,它会尝试导入大约 20 分钟。当我进入sql server并单击sql databases刀片时,我可以看到创建了数据库,但是数据库中的表是空的。
Could not import package.
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 SqlClie
我看到了一些关于类似问题的回复,但他们似乎都在使用 SSMS。有人对如何在 Azure 门户中解决此问题有任何想法吗?另外,有人知道他们在说什么复选框吗?进行导入设置时没有复选框。
【问题讨论】:
-
您能否添加更多有关您如何尝试导入的详细信息,逐步详细信息将非常有助于尝试并指导您选择需要单击的选项。您是否将原始数据库导出到 bacpak 文件或您如何进行导入
-
@user7415753 我添加了更多信息。希望对大家有所帮助
-
前两个警告可能无关紧要,您能否发布以下内容:收到的实际错误消息(在 .Net sqlclie 之后)和您要从中导出的 SQL 版本
-
我无法从任何地方提取完整的错误消息。有版本是12.0.2000.8
标签: sql-server azure azure-sql-database