To get the size of the database based on the tables

  • I have 57 tables,7 views and 1 stored procedure. Just wanted know based on these requirements how can I find the size of the database. Though the DB contains lots of tables, views and procedures. I am moving these details to new DB server. So I need to put right requirements. Any anybody help on this

  • Here is the script I'm using:

    http://www.sqlservercentral.com/Forums/FindPost1002319.aspx

    -- Gianluca Sartori

  • Unless you need a more granular breakdown, you can just run sp_spaceused on the database itself. e.g.

    use AdventureWorks2014

    go

    exec sp_spaceused

    Executive Junior Cowboy Developer, Esq.[/url]

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply