Shrink Database in Microsoft Dynamics 365 [F&O]

Shrink Database in Microsoft Dynamics 365 [F&O]

There are 2 ways to trigger the shrink.

First approach is from the below path.



Select the file type ‘ Log’ option and click Ok.

This takes sometime to complete and when it finishes the SQL log drive would have more free space.


Approach 2 is to execute a query from SQL which does the job instantly.

ALTER DATABASE AxDB SET RECOVERY SIMPLE;

USE AxDB;
GO
CHECKPOINT;
GO
CHECKPOINT;
GO
DBCC SHRINKFILE(AxDBCopy_log, 1000); -- 1000 = 1GB
GO        
Imam Muflihul Rifki

Technical Consultant AX 2012 | D365 F&O | D365 BC | NAV | .Net

3 个月

Thanks for sharing

回复
Mustafa Ragab

Senior Consultant @ CompactSoft | Dynamics 365 /AX2012 Retail and Supply Chain

3 个月

Thanks

要查看或添加评论,请登录

社区洞察

其他会员也浏览了