March 4, 2004 at 11:55 pm
Hello All,
can anybody helps in writing sql code for listing all indexes on all tables in given database. Really this will be of great help to me.
Thanks,
Mahesh
March 5, 2004 at 3:18 am
hi mahesh,
u can use
sysobjects
sysindexes
sysreferences
system tables.
The primary key is ID.
I would have given u the query but I don't have enough time.
ok bye
nitin
March 5, 2004 at 3:53 am
Hello Nitin,
I would appriciate even if you send me on monday, my mail id is mpbalshetwar@hotmail.com.
Thanks,
MaheshB
March 5, 2004 at 4:00 am
hi mahesh,
i'll try today itself.
Otherwise i'll send u at ur emailid.
ok bye
nitin
March 5, 2004 at 7:33 am
This may give you a little more than what you asked for but it is simple and easy to use:
DBCC SHOWCONTIG WITH TABLERESULTS , ALL_INDEXES
* Noel
June 27, 2005 at 4:50 pm
This will sort you out:
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply