Syntax
EXEC sp_helpindex 'Dbo.Table_Name'
Example
EXEC sp_helpindex 'Dbo.Employee_Info'
Result Set displays


Create Table with Primary Key
Output

Create Table with Candidate Key
Output
Create a Table without Primary Key

Output

This blog describes indexes on Table by using sp_helpindex.




DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · SQL ServerBasics of SQL ServerDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.