我正在尝试在弹性池内的 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)