About 166,000 results
Open links in new tab
  1. How do you clear the SQL Server transaction log?

    Sep 11, 2008 · Log file autogrow events are expensive, since SQL Server has to zero out the files (unlike data files when instant file initialization is enabled), and user transactions have to wait while …

  2. What is the command to truncate a SQL Server log file?

    Sep 2, 2008 · Another option altogether is to detach the database via Management Studio. Then simply delete the log file, or rename it and delete later. Back in Management Studio attach the database …

  3. How to remove SQL Server Error Logs

    Nov 16, 2019 · I mean the ones that appear in "Management -> SQL Server Logs" node. The ones that are stored in the C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\Log …

  4. How to clear error logs using query in SQL Server without restarting ...

    Jan 4, 2017 · Possible duplicate of Is it possible to clear logs in SQL Server 2008 using a query?

  5. Safely deleting a SQL Server log file (.LDF)

    The SQL Server 2008 Internals Book (pp 175-177) implies that detaching the database, deleting the log file and reattaching the mdf file ought to be quite safe as it says. Detaching a database ensures that …

  6. Remove existing log file and create new log file in sql server

    Jul 19, 2018 · Remove existing log file and create new log file in sql server Asked 7 years, 5 months ago Modified 4 years, 4 months ago Viewed 28k times

  7. How do I truncate the transaction log in a SQL Server 2008 database?

    9 How do I truncate the transaction log in a SQL Server 2008 database? What are possible best ways? I tried this from a blog as follows: 1) From the setting database to simple recovery, shrinking the file …

  8. Truncate SQL Server transaction log file - Stack Overflow

    C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA How come I have a copy of that log file locally and also that database locally? How would I go about truncating …

  9. How to truncate/empty huge SQL log files - Stack Overflow

    Aug 5, 2020 · 0 I've got some databases that are around 500mb with log files that are 50+gb. reading through I've seen transaction log backups weren't done so i suspect that's the reason for this growth …

  10. sql - How to shrink a log file without backuping first? - Stack Overflow

    Sep 30, 2014 · 6 I have a SQL Server 2008 database with a .mdf file with 1 GB and a .ldf file (log) with 70 GB. I really don't know what took my log file to be so big in a week and to stop to increase, but my …