About 1,030,000 results
Open links in new tab
  1. SQL SERVER – How to Find Free Log Space in SQL Server?

    May 8, 2018 · Now let us talk about how to we can monitor free log space in SQL Server. Method 1: Using SQLPERF DBCC SQLPERF ('LOGSPACE') GO. Here is the script which you can run to get used space across all the databases. The reason, I prefer the second method over this method is because I can write my own logic when I go for method 2.

  2. Display data & log space info for a database - SQL Server

    Nov 22, 2024 · Learn how to display the data and log space information for a database in SQL Server by using SQL Server Management Studio or Transact-SQL.

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

    Dec 17, 2009 · select used_log_space_in_percent from sys.dm_db_log_space_usage; This view alone would support stopping prior to the point at which the log file grows. It could be used in combination with the sys.database_files view and its max_size column to get a more granular value for 'percentage of maximum size that has already been consumed' than would ...

  4. sys.dm_db_log_space_usage (Transact-SQL) - SQL Server

    Dec 18, 2023 · Returns space usage information for the transaction log. Note. All transaction log files are combined. Database ID. In Azure SQL Database, the values are unique within a single database or an elastic pool, but not within a logical server. Applies to: SQL Server 2014 (12.x) and later, SQL Database.

  5. Determine Free, Used and Total Space for SQL Server Databases

    Jun 2, 2018 · DBCC SQLPERF(logspace) is an absolutely functional command if you are only interested in consumption of your database log files. It provides the cumulative size for each log file for each database on the SQL Server instance as well as the amount of space consumed (as a percentage of total log file size).

  6. SQL SERVER – Available Free Space in Data and Log File

    Aug 16, 2021 · Here is the script which you can run to identify the Total and Free space in your database files. Well, that’s it. We are done. You run the script above and it will give you available free space in data and log files for your current database. If you have any other questions or comments, you can reach out to me via comment.

  7. Monitoring SQL Server database transaction log space

    May 22, 2024 · SQL Server has a command that you can run to see the current size of the transaction logs and how much space is currently being utilized. The command is DBCC SQLPERF (logspace). This is a very simple command to run and interpret and this is key to getting an understanding of how your transaction logs are being used.

  8. How to determine SQL Server database transaction log usage

    Oct 23, 2020 · One command that is extremely helpful in understanding how much of the transaction log is being used is DBCC SQLPERF (logspace). This one command will give you details about the current size of all of your database transaction logs as …

  9. How to Check Database Log File Size in SQL Server Using Query?

    Nov 2, 2023 · In this SQL Server tutorial, you will learn how to check database log file size in SQL Server using query. First, you will understand ‘What is a database log file in an SQL Server instance?’. Then you will understand about two view files sys.database_file and sys.master_files to retrieve the log file and its size.

  10. Four Ways to Find Free Space In SQL Server Database

    Feb 13, 2009 · 2) Use DBCC SQLPERF to check free space in SQL Server Database. USE Solivia GO DBCC SQLPERF(logspace) GO. This command provides transaction log space usage statistics of entire database...

  11. Some results have been removed
Refresh