Hi All,
I am trying shrink a file which is of 1TB to 500GB. Used space is 250GB.
When I try to shrink the data file, it throws me below error.
Any idea why it is throwing that error? How to troubleshoot this issue and what are the options available if I had to shrink this data file?
DBCC SHRINKFILE(db1_dat,512000);
Error Message:
Msg 511, Level 16, State 1, Line 62
Cannot create a row of size 8193 which is greater than the allowable maximum row size of 8060.
DBCC SHRINKFILE: Heap page 1:134083999 could not be moved.
The statement has been terminated.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Regards,
Sam
September 17, 2023 at 5:13 am
The error is telling me that you have a table that might be in a little trouble and some column widths need to be adjusted either for width or maybe changed to a LOB datatype.
--Jeff Moden
Change is inevitable... Change for the better is not.
Hello,
have you tried to shrink in smaler trunks, like:
DBCC SHRINKFILE(db1_dat,921600);
We had sometime trouble to shrink, if the step was to big. We used smaler "steps", and every thing was fine.
Kind regards and good luck,
Andreas
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply