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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL 2000 Indexes 1

Status
Not open for further replies.

mutley1

MIS
Jul 24, 2003
909
Hi guys,

I've written something in SQL 2000 to retrieve all the user indexes including table, index name, fields it is made up od and the position in the index. This has all come from sysobjects, sysindexes and syskeys. I can get everything from that, but cant find any field, indicator or anything that refers to if the field is ASC or DESC sort withn the index.

Table Index Field Pos in IDX ASC/DESC
Mytbl IDX1 Forename 1 ASC
Mytbl IDX1 Surname 2 DESC

Rubbish example I know, but can anyone point me in the right direction of finding if the field is asc or desc within the index.

Cheers,

M.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top