In SQL Server 2008 is there any way to disable transaction log or clear log file?
When I execute one query in my project (very large in terms of transaction) a that time this log file’s size will goring to increase (2 to 3 GB).
Please suggest me some good option.
You may shrink it
BUT it only works with Simple recovery model, instead you have to back the log up and shrink it afterwards
You cannot drop the log files at all even if your database is in read-only mode.
AND try to redesign and review your approach when dealing with sql server’s DB. It is not the right option or best practice to shrink files – especially on regular basis!