Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6860883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:27:52+00:00 2026-05-27T02:27:52+00:00

In a previous question @Morawski was saying that a table with 1,000 columns and

  • 0

In a previous question @Morawski was saying that “a table with 1,000 columns and 44,000 rows It’s about 330 MB; that’s how much a browser uses for just a few open tabs”.

How many columns and rows the table should have to tell its size is > 10 GB
(suposing the table has only double values).

How did @Morawski concluded that 1,000 columns and 44,000 is 330MB?

Is there any script that could tell this in SQL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:27:53+00:00Added an answer on May 27, 2026 at 2:27 am
    -- Measures tables size (in kilobytes)
    -- Tested in MS SQL Server 2008 R2
    
    declare @t table (
    name nvarchar(100), [rows] int, [reserved] nvarchar(100), [data] nvarchar(100), [index_size] nvarchar(100), [unused] nvarchar(100)
    )
    declare @name nvarchar(100)
    
    declare tt cursor for
    Select name from sys.tables
    open tt
    
    fetch next from tt into @name
    while @@FETCH_STATUS = 0
    begin
      insert into @t
      exec sp_spaceused @name
      fetch next from tt into @name
    end
    
    close tt
    deallocate tt
    
    select name as table_name, [rows] as rows_count, data + [index] as total_size, data as data_size, [index] as index_size
    from (select name,
    [rows],
    cast (LEFT(data, LEN(data)-3) as int) data,
    cast (LEFT(index_size, LEN(index_size)-3) as int) [index]
     from @t
    ) x
    order by 3 desc, 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In previous question I got comment about Oracle statistics: Oracle doesn't know that 50M
This question depends my previous question: Browser crashes after 10-15 mins On that question
In previous question of mine, someone had meantioned that using Semaphores were expensive in
This question is related to a previous question of mine That's my current code
This question follows on from a previous question, that has raised a further issue.
This question is a follow up to my previous question about getting the HTML
Continuing from my previous question , is there a comprehensive document that lists all
This question is a folo to a previous question I asked about how to
This question is in continuation to my previous question, in which I asked about
On Previous Question , someone recommended that I install Andy's IDE Fix Pack to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.