Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Database Shrink Error: 8985

$
0
0

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 XXX
GO
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.


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>