Hi All,
Version: Microsoft SQL Server 2008 (SP3) - Enterprise Edition.
While performing the DB Shrink, I get the following error on both the editionsEnterprise and Developer. Recently I have upgraded the Service pack from SP2 to SP3. From then this issue has started.
I have verified the log logical name and physical path which is available and its correct.
The Command that I use to Shrink is below:
USE XXXGO
DBCC SHRINKFILE (XXX_Log, 0);
GO
Error Message: Could not locate file 'XXX_Log' for database 'XXX' in sys.database_files. The file either does not exist, or was dropped. [SQLSTATE 42000] (Error 8985). The step failed.
Please suggest or help me to sort out this issue.