Msg 5039, Level 16, State 1, Line 1
MODIFY FILE failed. Specified size is less than current size.
This error message appears when you try to modify a file and specify a size that is less than the current size.
The T-SQL statement can be parsed, but causes the error at runtime.
Errors of the Severity Level 16 are generated by the user and can be fixed by the SQL Server user. The statement cannot be executed this way. The specified size must be equal or greater to the current size.
All versions of SQL Server.
ALTER DATABASE MyExample
(NAME = MyExample_Data,
SIZE = 0);
In the above example we try to specify a size of 0 for the logical file MyExample_Data. Because this is less than the current size, the error is raised.