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 2005 Forums
 Transact-SQL (2005)
 need index info of table

Author  Topic 

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2007-03-20 : 10:29:03
I need drop and create indexes in a table.
How to list indexes' name in a table?

nr
SQLTeam MVY

12543 Posts

Posted - 2007-03-20 : 10:30:43
sp_helpindex tblname.

Best is to script them.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Sun Foster
Aged Yak Warrior

515 Posts

Posted - 2007-03-20 : 10:37:32
It works fine. Thanks
Go to Top of Page
   

- Advertisement -