
In Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance. Point to Tasks, point to Shrink, and then click Files.How do I delete a log file in SQL Server 2008 r2? Way 1: Delete SQL Server Log File in SQL Server Management Studio Expand Databases and then right-click the database that you want to shrink. Note: You need the sysadmin fixed server role or the dbowner fixed database role to shrink the log. Right-click the database and select Tasks -> Shrink -> Files.
...
As we all know the SELECT statement was returning the log file with a. You folks are not going to believe this, but I have come up with the solution to this problem after some more research. Option 1: Select Release unused space check box.Correspondingly, how do I reduce the size of my SQL database log?To reduce the size of the transaction log file size, follow the steps as shown below: Generally, log file will be shrunk after you click OK now. In the SQL Server Management Studio, right click on the BizTalk360 database name and select Tasks > Shrink > Files. Select the Release unused space radio button.Yes, it's fine.
And it can only be done after the DB is done backing up. The only way to clean that up is to shrink that file. So when this log file gets filled, we get errors in our monitoring software. Below is the query I ran and it completed successfully:DBCC SHRINKFILE('wslogdb70_Log.ldf', 100)I had to add another USE command just to make sure it didn't run home to the master and then I had to add single quotation marks on either side of the log file name.The reason I was still visiting this is because when this server was built, it wasn't built with enough space (not my fault).
