Posts

Showing posts from August, 2024

How to clean up the log problem? PowerBIReportServerDB_log.ldf Clean up

PowerBIReportServerDB_log.ldf Clean up  Step 1: Shrink the Log File Manually Back Up the Transaction Log: Before shrinking the log file, perform a transaction log backup. This ensures that you have a safe recovery point. Run the following SQL command in SQL Server Management Studio (SSMS): Sql Code BACKUP LOG PowerBIReportServerDB TO DISK = 'C:\Backup\PowerBIReportServerDB_LogBackup.bak'; Shrink the Log File: After the backup, you can shrink the log file to reduce its size: Sql Code USE PowerBIReportServerDB; DBCC SHRINKFILE (PowerBIReportServerDB_log, 1024); -- Shrinks the log file to 1GB Note: Adjust the size as needed. This command reduces the log file size to 1GB. Set Recovery Model to Simple (Optional): If you don’t need point-in-time recovery, consider switching the database to Simple Recovery Model . This model automatically reclaims log space to keep the ...