SQL Server Performance Forum – Threads Archive
Indexes in a stored proc???
1,How can we check existing indexes on the tables involved in a stored proc?<br />2,If there are none, then how can we create one?<br /><br />thanks<img src=’/community/emoticons/emotion-1.gif’ alt=’
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by i.netdeveloper</i><br /><br />1,How can we check existing indexes on the tables involved in a stored proc?<br />2,If there are none, then how can we create one?<br /><br />thanks<img src=’/community/emoticons/emotion-1.gif’ alt=’

BTW, you have pretty similar index question here too. http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=19628 Thanks, Name
———
Dilli Grg (1 row(s) affected)
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by i.netdeveloper</i><br /><br />1,How can we check existing indexes on the tables involved in a stored proc?<br />2,If there are none, then how can we create one?<br /><br />thanks<img src=’/community/emoticons/emotion-1.gif’ alt=’

Anyways, stored procs are not the right places to create indexes. Roji. P. Thomas
SQL Server MVP
http://toponewithties.blogspot.com
If it is related to SQL Server 2005 sys.dm_db_index_usage_stats Dynamic management view can help u.
Read more about Index Related Dynamic Management Views and Functions in BOL Madhu
]]>