I use the following script to shrink the logs, just wondering if it cause any problems doing it while some process happening on the database (like an update).USE XXXt;GO-- Truncate the log by changing the database recovery model to SIMPLE.ALTER DATABASE XXXSET RECOVERY SIMPLE;GO-- Shrink the truncated log file to 1 MB.DBCC SHRINKFILE (XXX_log, 1);GO-- Reset the database recovery model.ALTER DATABASE XXXSET RECOVERY FULL;GO
↧