Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Locating an Index in system files

Status
Not open for further replies.

lawlerpat

Programmer
Jun 28, 2002
54
US
What system table and field values do I need to search to determine whether an index of a known name exists on a specific table and whether the index was created as Unique or not.
SP_Help is not what i am looking for.

Using sql 2000
I need to be able to do this from VB code

Thanks

 
you can make usage of sysindexes and sysobjects system tables!
 
Unless I overlooked it, I did not see that iether of these tables informed me as too whether an index was a "unique" type or not.
Do you know if that information is in either of these tables?

Thanks,
Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top