Results 1 to 2 of 2

Thread: [SQL Server] Determine or Predict the size of the Index for a table?

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    [SQL Server] Determine or Predict the size of the Index for a table?

    Hi,

    Is there a way to determine the possible size the Indices of the table would take based on the table definition as well as the number of rows? The indexes are non-clustered, non-unique

    If so, What about an index whose column will have null values?

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: [SQL Server] Determine or Predict the size of the Index for a table?

    Indices are basically tables that contain the actual column value and a pointer to that row.
    So if it is a number field(bigint), the size should be roughly twice the number of rows * 8 bytes. etc.
    Though I'm not sure about this.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width