Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Indexes Type

Author  Topic 

rajender
Starting Member

13 Posts

Posted - 2005-08-11 : 01:39:17
Hi

Where do i can find the type of a particular index i.e whether it is a Unique index or Clusttered index or combination of both also if it is unique index whether it ignores duplicates or not. I tried Indexes collection of SQLDMO as well as the system tables i.e. sysindexes,sysindexkeys and sysobjects. There is no info about the types in system tables and SQL DMO object returns a long value but if a index is a combination of unique,clusttered and ignore duplicates then the return value not matches with any of the enum type value.

Also do anybody know where can i find good articles/tutorials/books on SQL-DMO.

Thanks in advance.
Rajender Kr.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-08-11 : 01:50:47
Run this

sp_helpindex 'tableName'

and also look for information_schema.TABLE_CONSTRAINTS table

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

rajender
Starting Member

13 Posts

Posted - 2005-08-11 : 02:00:08
Thanks Madhivanan
Go to Top of Page
   

- Advertisement -