About 2,430,000 results
Open links in new tab
  1. Open Log File Viewer - SQL Server | Microsoft Learn

    Feb 28, 2023 · Learn to use Log File Viewer in SQL Server Management Studio to access information about errors and events that are captured in several logs.

  2. SQL Server transaction log architecture and management guide

    Nov 22, 2024 · Every SQL Server database has a transaction log that records all transactions and the database modifications that are made by each transaction. The transaction log is a critical component of the database and, if there's a system failure, the transaction log might be required to bring your database back to a consistent state.

  3. Database files and filegroups - SQL Server | Microsoft Learn

    Jul 22, 2024 · At a minimum, every SQL Server database has two operating system files: a data file and a log file. Data files contain data and objects such as tables, indexes, stored procedures, and views. Log files contain the information that is required to recover all transactions in …

  4. How to read the SQL Server Database Transaction Log

    Jan 20, 2025 · Learn how to read the database transaction log file and how transactions correspond to database activity. This tip is helpful if you want to know what the transaction log file captures. An undocumented function called fn_dblog …

  5. How do you clear the SQL Server transaction log?

    Sep 11, 2008 · There should be a command in Managment Studio: "Click to Shrink Log" and you're done. Making a log file smaller should really be reserved for scenarios where it encountered unexpected growth which you do not expect to happen again. If the log file will grow to the same size again, not very much is accomplished by shrinking it temporarily.

  6. Reading the SQL Server Transaction Log - SQL Shack

    Feb 9, 2015 · SQL Server uses the transaction log to ensure that all transactions maintain their state even in case of a server or database failure. All transactions are written to the Transaction Log before it is written to the data files.

  7. How to determine SQL Server database transaction log usage

    Oct 23, 2020 · One crucial aspect of all databases is the transaction log. The transaction log is used to write all transactions prior to committing the data to the data file. In some circumstances the transaction logs can get quite large and not knowing what is in the transaction log or how much space is being used can become a problem.

  8. A beginner’s guide to SQL Server transaction logs - SQL Shack

    What is a transaction log? A transaction log is a file – integral part of every SQL Server database. It contains log records produced during the logging process in a SQL Server database. The transaction log is the most important component of a SQL Server database when it comes to the disaster recovery – however, it must be uncorrupted.

  9. SQL Server Transaction Log Architecture - SQL Shack

    Jan 31, 2019 · In this article we’ll review the architecture of the transaction log file. The transaction log is a critical component of a SQL Server database for ACID (Atomicity, Consistency, Isolation and Durability) compliance.

  10. How to Find the Location of Data Files and Log Files in SQL Server

    Apr 19, 2018 · Here’s how to find the default location for data files and log files in SQL Server. If you only need to find the location of the files for a particular database, you can query the sys.database_files system catalog view instead. Simply switch to the applicable database and run the query. Here’s an example: name 'Logical Name', .

  11. Some results have been removed
Refresh