Poblem creating index - increase number of open indexes?

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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan FranekCommented:
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.
Jan FranekCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Joe WoodhousePrincipal ConsultantCommented:
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!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Sybase Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.