Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

estimating the Index size for the database

Status
Not open for further replies.
Average size of the data in the column, times the number of rows in the table.

If your average length of the data is 17 char (and your data type is varchar) and you have 1,000,000 rows your index will be ~17,000,000 bytes or 16.2 MB. If your data type is nvarchar than multiply by 2. So the same field would be 34,000,000 bytes or 32.4 MB.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Denny, I suppose by "average length of the data is 17 char" you mean only columns included in the index, correct?

In other words non-clusterd index is as big as the data?

Thanks
 
Yeah, pretty much.

Is the column numberic or text?

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top