IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[HESAPISL]') AND name = N'IX_HESAPISL_HTEDAVITABELADETAYID' AND is_unique = 0)
DROP INDEX IX_HESAPISL_HTEDAVITABELADETAYID ON dbo.HESAPISL
GO

IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[HESAPISL]') AND name = N'IX_HESAPISL_HTEDAVITABELADETAYID')
CREATE NONCLUSTERED INDEX IX_HESAPISL_HTEDAVITABELADETAYID ON dbo.HESAPISL
	(
	HTEDAVITABELAKULLANIMID
	) WITH( PAD_INDEX = OFF, FILLFACTOR = 60, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO