Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Does log shrink would affect any process happenning

$
0
0
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

Viewing all articles
Browse latest Browse all 6525

Trending Articles