﻿DROP INDEX IF EXISTS T_DICTIONARYITEMBASE.NCI_DictionaryItembase_DictionaryTpyeId_IntezmenyId_TanevId
IF NOT EXISTS(SELECT 1 FROM sys.indexes WHERE name='NCI_DictionaryItembase_DictionaryTpyeId_IntezmenyId_TanevId') BEGIN
CREATE NONCLUSTERED INDEX NCI_DictionaryItembase_DictionaryTpyeId_IntezmenyId_TanevId
  ON T_DICTIONARYITEMBASE (
     C_DICTIONARYTYPEID
    ,C_INTEZMENYID
    ,C_TANEVID
  )
  INCLUDE (C_VISIBLE,C_NAME,C_NAME_1,C_NAME_2,C_NAME_3,C_NAME_4,C_TYPE,C_PROTECTED,C_COLOR,C_ORDER)
  WHERE TOROLT='F'
  WITH (FILLFACTOR = 80)
END
GO