Whaly's World tail -f /var/log/whaly

15Sep/090

Howto test if and index exist in SQL Server

IF INDEXPROPERTY(OBJECT_ID('TableName'), 'IndexName', 'IndexID') IS NOT NULL
	PRINT 'Index is here'
ELSE
	PRINT 'Index not found'
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.