Check the Space Used by a Table in SQL Server

SQL Server has a system stored procedure called sp_spaceused that enables you to check the size of a table in a database.

You can use it to check the number of rows, disk space reserved, and disk space used by a table, indexed view, or Service Broker queue in the current database, or the disk space reserved and used by the whole database.

Read more

SQL Alias Explained

The SQL alias is a nice little feature of SQL that allows you to write more concise code and create column names when no column name exists.

There are two SQL alias types; column aliases, and table aliases. In this article, I provide an overview of both.

Read more