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
Thanks for sharing Mohammed
Technical Consultant AX 2012 | D365 F&O | D365 BC | NAV | .Net
3 个月Thanks for sharing
Senior Consultant @ CompactSoft | Dynamics 365 /AX2012 Retail and Supply Chain
3 个月Thanks