小编Dav*_*tto的帖子

Azure SQL 数据库抛出错误 1132“弹性池已达到其存储限制”错误,即使它未满

我正在尝试在弹性池内的 Azure SQL 数据库中执行以下(示例)批处理:

drop table if exists [dbo].[InsertTest];
create table [dbo].[InsertTest] (
    [id] uniqueidentifier,
    [filler] nvarchar(max)
);

insert into [dbo].[InsertTest] ([id], [filler])
select top 1000 newid(), replicate('X', 2048)
from [sys].[objects] as [T1]
    cross join [sys].[objects] as [T2];

/* drop table if exists [dbo].[InsertTest]; */
Run Code Online (Sandbox Code Playgroud)

但该insert语句失败并显示错误消息:

Msg 1132, Level 16, State 1, Line 1
The elastic pool has reached its storage limit. The storage used for the elastic pool cannot exceed (51200) MBs.
Run Code Online (Sandbox Code Playgroud)

我试图通过运行查询来查看空间是否不足

select
    [type_desc]         as [file_type], …
Run Code Online (Sandbox Code Playgroud)

sql-server t-sql azure-sql-database

3
推荐指数
1
解决办法
541
查看次数

标签 统计

azure-sql-database ×1

sql-server ×1

t-sql ×1