About 659,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. Where to see SQL Server start/stop logs? - Stack Overflow

    Sep 23, 2009 · I want to know where to see SQL Server start/stop logs for each instances and SQL Server agent/job start/stop logs? I am developing some tools to monitor SQL Server status.

  3. How do I decrease the size of my sql server log file? [closed]

    You have to shrink & backup the log a several times to get the log file to reduce in size, this is because the the log file pages cannot be re-organized as data files pages can be, only truncated.

  4. sql server - Why can't I shrink a transaction log file, even after ...

    Apr 23, 2009 · I have a database that has a 28gig transaction log file. Recovery mode is simple. I just took a full backup of the database, and then ran both: backup log dbmcms with truncate_only DBCC …

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

    Sep 2, 2008 · I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log?

  6. sql server - DBCC SHRINKFILE on log file not reducing size even after ...

    To get around this do another transaction log backup, and immediately run these commands, supplying the file_id found above, and the size you would like your log file to be reduced to.

  7. sql server - Output SQL messages to a Log File - Stack Overflow

    7 I have an SQL script than runs a couple of DBBC commands. Is there a way to send the messages generated from executing these commands to a simple log file e.g "C:\log.txt"? The messages I …

  8. SQL Server: How do I increase the size of the transaction log?

    Jun 18, 2009 · MODIFY FILE to change the size of database files, including LOG files. You can look up master_files/sysfiles (2k) or <dbname>.sys.database_files (2k5/2k8) to get the logical name of the …

  9. 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 …

  10. sql server - TSQL: How do I get the size of the transaction log ...

    Dec 17, 2009 · From SQL Server 2012, there is another DMV (Dynamic Management View) available - sys.dm_db_log_space_usage. It has the advantage of returning the transaction log size as opposed …