IF NOT EXISTS(SELECT * FROM sys.indexes WHERE name='NB_SyncItems_TypeANDId' AND object_id = OBJECT_ID('NB_SyncItems'))
BEGIN
	CREATE NONCLUSTERED INDEX [NB_SyncItems_TypeANDId] ON [dbo].[NB_SyncItems] ([SyncType], [ItemId]) INCLUDE ([Synchronized])
END;
