Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Calculating the average row length

Posted on 2001-07-04
1
1,171 Views
Last Modified: 2012-05-04
Hello experts,

I am trying to conduct a sizing exercise for my database.  I am using the tried and tested approximation that a table size is approx = num rows * average row length.

The problem is that I am struggling to figure out the average row length for the table(s).  From business predictions I can figure out the number of rows but without the avg row length I'm stuffed.

I know in Oracle I can (after running stats) select DBA_TABLES.AVG_ROW_LENGTH for just this thing - is there an easy way in SQL Server.  I have a development database which I can use for test data if only I can figure out how to do it.

Can anybody help

Regards, Meowsh
0
Comment
Question by:meowsh
1 Comment
 
LVL 18

Accepted Solution

by:
nigelrivett earned 200 total points
ID: 6253010
try sp_spaceused 'tablename'
gives no rows, data/index size
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question