Database shrink getting failed
*************************** Internal to CitiXsys ***************************
Problem Reported:
During the 365 activity or any other general DB maintenance task you may face the below error when trying to shrink database
error message ' TITLE: Microsoft SQL Server Management Studio
------------------------------
Shrink failed for Database 'CXSRetail_SAP'. (Microsoft.SqlServer.Smo)
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
Lock request time out period exceeded. (Microsoft SQL Server, Error: 1222)'
Proposed Resolution:
As a Possible workaround you can try to shrink the DB using File option. kindly follow the below steps.
1 - Right click on database --> Property -->option -->Recovery Model -->select simple -->click ok
2 -Right click on database -->Tasks -->Shrink --> Files -->select file type -->Log -->click ok