473,378 Members | 1,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Table size count

Hi all

Please help me to find out table size in MS-SQL

how can I count or identify, this specific table is using some xyz kb
of space of my hdd.

thanks
Jul 20 '05 #1
5 4246
Don
you want to know the size of one Table from a database !! not the size
of the database size on your HD ??!

your database will take a size bigger than what all tables are using
and then it will grow in a % as needed !
so the size that the database is always bigger than the actual total
use of all tables in a database.

anyways, the number of rows in a table * sum of bits in table cloumns
will get you the size that the table is taking out from the database.

however the sum of table sizes NOT= to database size on HD
D


ve*************@yahoo.com (Anand) wrote in message news:<13**************************@posting.google. com>...
Hi all

Please help me to find out table size in MS-SQL

how can I count or identify, this specific table is using some xyz kb
of space of my hdd.

thanks

Jul 20 '05 #2
Anand,
Hi all

Please help me to find out table size in MS-SQL

how can I count or identify, this specific table is using some xyz kb
of space of my hdd.

thanks

Is'nt there a topic at the enterprise manager? Just click at your
database an then have a look at the right windows: Tables & Indices (I
have only SQL Server 7.0, but I think this option is not dropped at
newer versions)

Regards

Thilo Immel
www.sql-server-repair.com
Jul 20 '05 #3
thanks, for your help..
actuly, I want to know exact utili(s)zation of the HDD, by one table.

thnaks
ve*************@yahoo.com (Anand) wrote in message news:<13**************************@posting.google. com>...
Hi all

Please help me to find out table size in MS-SQL

how can I count or identify, this specific table is using some xyz kb
of space of my hdd.

thanks

Jul 20 '05 #4
Try:

EXEC sp_spaceused @objname = 'MyTable'

To ensure the reported space reserved is accurate, you can add parameter
@updateusage = 'true'. See the Books Online for more information.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"Anand" <ve*************@yahoo.com> wrote in message
news:13**************************@posting.google.c om...
thanks, for your help..
actuly, I want to know exact utili(s)zation of the HDD, by one table.

thnaks
ve*************@yahoo.com (Anand) wrote in message
news:<13**************************@posting.google. com>...
Hi all

Please help me to find out table size in MS-SQL

how can I count or identify, this specific table is using some xyz kb
of space of my hdd.

thanks

Jul 20 '05 #5
Anand,
thanks, for your help..
actuly, I want to know exact utili(s)zation of the HDD, by one table.


This is the exact utilization what the enterprise manager says. I have
not tested for image fields (they are not stored at the record itself,
but in so-called large value pages). Maybe they are not calculated
correct.

We have build a freeware tool for calculate the amount of disk space,
MS Access tables occupies (Access Memory Reporter, see
www.atroplan.com/AccMemoryReporter.htm). Access and SQL Server
structures are most the same. There are pages (Access 2000: 4 kByte,
SQL Server 7.0: 8 kByte for example) which each belongs to one table.
(hmm, I have to say, that Access 2.0 structure and SQL Server
structure are mostly the same, Access has a new structure up from
Access 97)

Even if a page is not filled completely, the whole page belongs to one
table. So you have to count the pages to calculate the disk space the
table needs. This is the way the enterprise manager calculate.

What do you want more?

Regards

Thilo Immel
Access Repiar Service www.atroplan.com
SQL Server Repair Service www.SQL-Server-repair.com

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Spanky | last post by:
Thanks for any help in advance! I have this order form where you add rows as you need them. The routine to add fields is working fine. I am trying to add the ability to delete rows if you...
4
by: dough | last post by:
I have a hash table with seperate chaining with a bunch of words in it. Here is my declaration: typedef struct word *word; struct word { int count; char *s; word next; };
0
by: Drew Pawlik | last post by:
Hey guys, I'm having a problem and need some help. I have an <asp:table ...> in my web page, and this table has 2 rows, the first being a header row, and the second row containing an <asp:button>...
3
by: Chifo | last post by:
hello. i have a problem with a populate html table with data from table here it's the problem two querys retrieving data from table, one of querys show me a colletion of data from 6:00 am to...
0
by: shakahshakah | last post by:
Just started investigating InnoDB after having used MyISAM tables in the 4.0.12 version, almost immediately ran into a locking issue with INSERTs, DELETEs, and transactions. Given the following...
6
by: polocar | last post by:
Hi, I'm writing a program in Visual C# 2005 Professional Edition. This program connects to a SQL Server 2005 database called "Generations" (in which there is only one table, called...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
21
by: Stephen.Schoenberger | last post by:
Hello, My C is a bit rusty (.NET programmer normally but need to do this in C) and I need to read in a text file that is setup as a table. The general form of the file is 00000000 USNIST00Z...
1
by: rakeshnair | last post by:
i wrote a code in jsp to create dynamic table..the problem is i need data base connection when cursor moves from one cell to other... eg...when i enter product id in the first cell, the product name...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.