Technical Article

User Tables with Size  all DBs (SQL 2005 Only)

Hope this is helpful to someone.  This script will create a table and a stored procedure in the master database to gather and store table info for all datbases. The sp uses a temp table to hold the results returned by sp_spaceused, then transfers the information to the permanent table DatabaseTableSizes and adds the database […]

5 (1)

You rated this post out of 5. Change rating

2007-07-16 (first published: )

277 reads

Blogs

Migrate to Azure PostgreSQL Flexible Server

By

I need to migrate from a single server to a flex server. Instead of...

Using Copilot to help me update SQL Saturday

By

An interesting AI experiment here with Copilot from GitHub in handling some code I...

Master SQL with This Free Course (141 Interactive Exercises Included)

By

SQL is essential for modern businesses and applications that rely on data. It's a...

Read the latest Blogs

Forums

The Vast Expansions of Hardware

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Vast Expansions of Hardware

Code Blocks

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Code Blocks

does netsuite really hide columns from customers?

By stan

Hi we built a gateway from sql server to netsuite using an oracle competitor's...

Visit the forum

Question of the Day

Code Blocks

What happens with this code:

DECLARE @Iteration INT = 0;

WHILE @Iteration < 10
    SELECT CustomerName,
        CustomerStatus
    FROM dbo.Customer
    WHERE CustomerID > 3;

    SET @Iteration += 1;

See possible answers