Temos dois grupos de arquivos PRIMARY e SECONDARY. O objetivo é mesclar a partição SECONDARY com a PRIMARY .
Ao executar o comando abaixo, o seguinte erro está chegando:
DBCC SHRINKFILE (N'ABC_Secondary', EMPTYFILE);
GO
DBCC SHRINKFILE: Heap page 3:54888929 could not be moved.
Msg 2555, Level 16, State 1, Line 7
Cannot move all contents of file "ABC_Secondary" to other places to complete the emptyfile operation.
The statement has been terminated.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Msg 1105, Level 17, State 2, Line 7
Could not allocate space for object 'dbo.Contact' in database 'ABC' because the 'SECONDARY' 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.
Tempo de conclusão: 2021-01-23T10:51:18.9766221-07:00
Veja abaixo o uso do banco de dados:
DbName FileName type_desc CurrentSizeMB FreeSpaceMB
ABC ABC ROWS 1791360.000000 357524.062500
ABC ABC_log LOG 904.000000 858.640625
ABC ABC_Secondary ROWS 483274.000000 437450.437500