if exists (select * from sys.indexes i where i.object_id = object_id('VCLIB.T_DELETED_OBJECT', 'U') and i.name = 'IX_DELETED_OBJECT_ENTITIES') 
	drop index IX_DELETED_OBJECT_ENTITIES on VCLIB.T_DELETED_OBJECT;
GO
CREATE INDEX IX_DELETED_OBJECT_ENTITIES ON VCLIB.T_DELETED_OBJECT (ENTITIES) with (maxdop = 0, sort_in_tempdb = on)