How to shrink db log file
I got this code snippet from my collegue , hope this can be helpful for others too
declare @dbname nvarchar(255) set @dbname = 'databasename' backup log @dbname with truncate_only DBCC SHRINKDATABASE (@dbname, 0)
I got this code snippet from my collegue , hope this can be helpful for others too
declare @dbname nvarchar(255) set @dbname = 'databasename' backup log @dbname with truncate_only DBCC SHRINKDATABASE (@dbname, 0)
Comments