IF  EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[dsync_offline]') AND name = N'ix_dsync_offline_client_id_start_on')
ALTER TABLE [dbo].[dsync_offline] DROP CONSTRAINT [ix_dsync_offline_client_id_start_on]
GO
CREATE NONCLUSTERED INDEX ix_dsync_offline_client_id_start_on
ON [dbo].[dsync_offline] ([client_id],[start_on])