MODIFY FILE failed. Specified size is less than current size.

Error Message:
Msg 5039, Level 16, State 1, Line 1
MODIFY FILE failed. Specified size is less than current size.

Severity level:
16.

Description:
This error message appears when you try to modify a file and specify a size that is less than the current size.

Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.

Resolution:
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.

Versions:
All versions of SQL Server.

Example(s):
ALTER DATABASE MyExample
MODIFY FILE
 (NAME = MyExample_Data,
  SIZE = 0);

Remarks:
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.




Array

No comments yet... Be the first to leave a reply!