Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I add an index in Sybase, is it built automatically or do I need to do something extra? Is there a way to tell?

share|improve this question
add comment

2 Answers

Check your objects with

sp_help table_name

And

sp_helpindex table_name 

Both will inform you about the status of an index.

share|improve this answer
add comment

Any DBMS I know does not have any special mechanism to "commit" an index creation.

How to prove that it was created ? Well simply perform an heavy query before and after the index to have been added and see the incredible amount of time difference you have. We are talking of seconds and second, maybe minutes so you don't need any particular tool apart your eyes :)

share|improve this answer
    
+1. Another way to observe how index creation actually happens is to create index on huge table. It can take hours, and interactive SQL will not accept next statement until create index is complete or fails. –  user34369 Feb 10 '10 at 13:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.