2017-10-20 26 views
-1
I ran the following command in Management Studio for SQL Server Express 2008R2 

DBCC DBREINDEX('PropertyPair', '',90) 

我收到以下错误无法为对象分配空间“dbo.SORT临时存储运行DBCC上DBREINDEX

Could not allocate space for object 'dbo.SORT temporary run storage: 430271000936448' in database 'mydata' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup. 

有足够的磁盘空间,但数据文件已接近10千兆极限。

学习后This question我试着停止SQL Server并运行碎片整理。我也重新启动了服务器,但仍然出现错误。

如果我看看Management Studio中的数据库属性我看到大小9661.19Mb和可用空间2904.34Mb

如果我把违规表,然后我可以在其他表运行DBCC重新编制索引,而不错误。

+0

>>>>>“因为'PRIMARY'文件组已满”似乎不言自明。检查您的事务日志驱动器。希望不会像数据驱动器一样..... –

+0

@MitchWheat没有使用事务日志。恢复模式很简单 –

+0

即使在简单模式下,您也正在使用事务日志! –

回答

1

对于SQL Server Express,如果您正在运行的最大数据限制是关于您的唯一选项是缩小文件,删除数据,删除索引或添加其他数据库和编组数据来回。除此之外,你正在看版本升级。

相关问题