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?
Asked
Active
Viewed 148 times
2 Answers
1
Check your objects with
sp_help table_name
And
sp_helpindex table_name
Both will inform you about the status of an index.
Jacobvdb
- 137
- 5
0
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 :)
drAlberT
- 10,871
- 7
- 38
- 52
-
+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. – Feb 10 '10 at 13:17