gpt4 book ai didi

c# - context.Database.ExecuteSqlCommand - 错误代码 701 - Microsoft Azure

转载 作者:太空宇宙 更新时间:2023-11-03 19:58:08 26 4
gpt4 key购买 nike

我在迁移配置播种方法中有以下代码:

string sqlQuery = // 22 mb file contents
context.Database.ExecuteSqlCommand( sqlQuery );

ExecuteSqlCommand 函数使 Azure 抛出此错误:

The service has encountered an error processing your request. Please try again. Error code 701. A severe error occurred on the current command. The results, if any, should be discarded.

为什么会这样呢?我实在找不到太多相关信息

最佳答案

根据我的谷歌搜索,SQL错误701如下:

SQL Server has failed to allocate sufficient memory to run the query. This can be caused by a variety of reasons including operating system settings, physical memory availability, or memory limits on the current workload. In most cases, the transaction that failed is not the cause of this error.

可能是时候进行升级,或者更改查询要撤回的内容或将其拆分为单独的查询。

关于c# - context.Database.ExecuteSqlCommand - 错误代码 701 - Microsoft Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31315797/

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