Poblem creating index - increase number of open indexes?

Posted on 2004-12-01
Last Modified: 2008-02-01
I am creating a large number of tables and need to create indexes on them. If I execute just one table create sql statement and one index create statement it works fine (so no problem with syntax!) But when I create many tables it comes up with the error:

Cannot find an available index descriptor for an index. Increase the value of 'number of open indexes'. If sp_configure fails due to lack of index descriptors, edit the configuration file and restart the server.
Server Message:  Number  8424, Severity  17

I need to change the 'number of open indexes' - but how?

Thanks, Alex
Question by:alex_the_kidd
    LVL 14

    Expert Comment

    You can check current setting with: exec sp_configure "number of open indexes"
    You can set new value with: exec sp_configure "number of open indexes"

    Check the output after setting new value - it should tell you, wheter you need to restart your server.

    Other possible way is to edit this value in the configuration file of your server (usually it's $SYBASE/your_server_name.CFG) and restart your server.

    If you are not DBA of your server, you will probably need his/her assistance.
    LVL 14

    Accepted Solution

    There's one more way - via SQL Central - right click on name of your server, choose Configure, find "number of open indexes" and set new value.
    LVL 24

    Expert Comment

    by:Joe Woodhouse
    You've already been given the correct answer, but there was a small typo. You set the new value with:

    exec sp_configure "number of open indexes", [new number]

    But what to set it to? Try:

    exec sp_countmetadata "number of open indexes"

    It will report on how many indexes permanenntly exist in all databases in this server. It won't count temporary indexes that the optimiser sometimes creates, so you should oversize its results by 10%>

    While you're at it, you should also run sp_countmetadata against "number of open objects" (oversize by 25%) and "number of open databases" (good to have some space, oversize by 10 - not 10%, but 10). You change both of these using sp_configure as well.

    Good luck!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    For Sennheiser, comfort, quality and security are high priority areas. This paper addresses the security of Bluetooth technology and the supplementary security that Sennheiser’s Contact Center and Office (CC&O) headsets provide.  
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now