Quantcast
Channel: SQL Server Manageability forum
Viewing all articles
Browse latest Browse all 1519

Shrink DB

$
0
0

We have a maintenance plan setup to perform few tasks - integrity check, shrink, etc.

The shrink DB task has failed with the below error:


Executing the query "DBCC SHRINKDATABASE(N'TestAndRepair', 20, TRUNCATE..." failed with the following error: "Backup, file manipulation operations (such as ALTER DATABASE ADD FILE) and encryption changes on a database must be serialized. Reissue the statement after the current backup or file manipulation operation is completed.

DBCC SHRINKDATABASE: File ID 1 of database ID 11 was skipped because the file does not have enough free space to reclaim.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.


------------------------

To avoid conflict between the shrink & backup job, we have 2 tasks included to enable & disable log backup before and after the job. But still the job has failed with above error.

Can you help me understand if again shrink has failed due to conflict with backup operation or its due to space issue as I see a msg 'there isn't sufficient space to reclaim'.


Viewing all articles
Browse latest Browse all 1519

Trending Articles



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