IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[TSTOKCARIKISITLAMA]') AND 
name = N'IXM_TSTOKCARIKISITLAMA_STOKID_CARIID')

CREATE NONCLUSTERED INDEX [IXM_TSTOKCARIKISITLAMA_STOKID_CARIID] ON [dbo].[TSTOKCARIKISITLAMA]
(
	[STOKID] ASC,
	[CARIID] ASC
) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
go


