gpt4 book ai didi

azure - 创建后无法立即打开 Azure SQL Server DB

转载 作者:行者123 更新时间:2023-12-03 01:46:53 24 4
gpt4 key购买 nike

我正在尝试在 Azure SQL Server 中自动创建租户数据库。DB 已创建/复制为

CREATE DATABASE {0} AS COPY OF {1} ( SERVICE_OBJECTIVE = 'S2' )

立即向同一表中的一个表添加一条记录。出现错误:

Function completed (Failure, Id=1046eae2-c07a-4eee-9a1d-886e89ab5071) A ScriptHost error has occurred Exception while executing function: Functions.CreateTenant. .Net SqlClient Data Provider: Database 'tenant8' on server 'dbserver' is not currently available. Please retry the connection later. If the problem persists, contact customer support, and provide them the session tracing ID of '8AF58081-8F25-4B7F-83E3-63AFFC13C8CB'. Exception while executing function: Functions.CreateTenant Executed 'Functions.CreateTenant' (Failed, Id=1046eae2-c07a-4eee-9a1d-886e89ab5071) Function had errors. See Azure WebJobs SDK dashboard for details. Instance ID is '1046eae2-c07a-4eee-9a1d-886e89ab5071'

最佳答案

查看错误消息,您似乎试图在配置和部署数据库 tenant8 之前插入数据。部署数据库需要花费几十秒到几分钟的时间。此操作涉及的步骤说明可以在这个blog post上找到。作者:史蒂夫·马克。如果部署时间超过 5 分钟,请告知我们。

关于azure - 创建后无法立即打开 Azure SQL Server DB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45671692/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com