if not exists (select * from sys.indexes where name = 'CI_ConnectionLog_StartDateTimeUTC' and object_id = object_id(N'dbo.ConnectionLog'))
   and exists (select * from sys.tables where object_id = object_id(N'dbo.ConnectionLogNew'))
    create clustered index CI_ConnectionLog_StartDateTimeUTC on dbo.ConnectionLogNew (StartDateTimeUTC asc)