Quantcast
Channel: Powertips » MS SQL Server
Viewing all articles
Browse latest Browse all 10

How To: Find / Check if the index is exists

$
0
0

IF EXISTS(select * from sys.indexes where object_id = OBJECT_ID(‘TableName’) AND name=’IndexName’)

print ‘Exists’

or

exec sp_helpindex ‘TableName’


Viewing all articles
Browse latest Browse all 10

Trending Articles