Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Query to check Tables row count and space details in SQL Server

The sp_spaceused stored procedure to retrieve the table size information:

EXEC sp_spaceused 'YourTableName'; Code language: JavaScript (javascript)

Replace ‘YourTableName’ with the name of the table you want to check. This will return a result set with information about the table’s total size, data space, index space, and unused space.

The sp_spaceused stored procedure returns a result set with the following column headers:

  1. name: The name of the table or indexed view.
  2. rows: The number of rows in the table or indexed view.
  3. reserved: The total amount of space reserved for the table or indexed view (in KB).
  4. data: The amount of space used by the data in the table or indexed view (in KB).
  5. index_size: The amount of space used by the indexes in the table or indexed view (in KB).
  6. unused: The amount of space reserved for the table or indexed view, but not currently used (in KB).

Here’s an explanation of each column:

  • name: This column displays the name of the table or indexed view.
  • rows: This column displays the number of rows in the table or indexed view.
  • reserved: This column displays the total amount of space reserved for the table or indexed view. This includes the space reserved for data, indexes, and unused space.
  • data: This column displays the amount of space used by the data in the table or indexed view. This includes the size of all data pages used by the table, including any clustered or non-clustered indexes.
  • index_size: This column displays the amount of space used by the indexes in the table or indexed view. This includes the size of all index pages used by the table, including any clustered or non-clustered indexes.
  • unused: This column displays the amount of space reserved for the table or indexed view, but not currently used. This includes any space that has been allocated to the table or indexed view, but has not yet been filled with data.

Note that the space usage reported by sp_spaceused includes all indexes associated with the table or indexed view, as well as any other objects (such as triggers or constraints) that may be defined on the table.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in is your go-to platform for adventure and exploration. Rent premium bikes for epic journeys or simple scooters for your daily errands—all with the MotoShare.in advantage of affordability and ease.

Related Posts

Ansible: Deep Dive into Jinja2 Ansible Template with example

Introduction to Ansible Templates and Jinja2 Ansible templates are powerful tools for creating dynamic configuration files and scripts based on variables and logic. Templates in Ansible use…

Read More

Complete User Guide for 404 Errors

Introduction A 404 error (also known as “404 Not Found”) is an HTTP status code indicating that a requested webpage cannot be found on the server. This…

Read More

Azure Certifications Roadmap & Path

List of microsoft Azure Certifications Table summarizing the Microsoft Azure Certifications Certification Exam Target Audience Skills Measured Microsoft Certified: Azure Fundamentals AZ-900 IT professionals who want to…

Read More

What is Azure Cost Management and use cases of Azure Cost Management?

What is Azure Cost Management? Azure Cost Management is a service within the Azure platform that helps organizations understand, manage, and optimize their cloud spending across Azure,…

Read More

What is Azure and use cases of Azure?

What is Azure? Microsoft Azure, commonly referred to as Azure, is a cloud computing platform and service given by Microsoft. It offers a wide range of cloud…

Read More

What is SQL Server and use cases of SQL Server?

What is SQL Server? SQL Server, developed by Microsoft, is a relational database management system (RDBMS) that is designed to store and retrieve data requested by other…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x