T-SQL Script for Shrink Log file in SQL Server
Here is the useful T-SQL Script for shrink database log file. USE [DatabaseName] ; GO -- Truncate the log by changing the databas...

https://www.interviewquestionspdf.com/2016/06/t-sql-script-for-shrink-log-file-in-sql.html
Here is the useful T-SQL Script for shrink database log file.
USE [DatabaseName];
GO
-- Truncate the log by changing the
database recovery model to SIMPLE.
ALTER DATABASE
[DatabaseName]
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1
MB.
DBCC SHRINKFILE (DatabaseName_log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE
[DatabaseName]
SET RECOVERY FULL;
GO
Truly a very good article on how to handle the future technology. After reading your post,thanks for taking the time to discuss this, I feel happy about and I love learning more about this topic.
ReplyDeleteSEO Company in Chennai