if not exists (select * from sys.columns where name = 'ID' AND object_id = object_id('dbo.ConnectionState') and system_type_id = 36)
	if exists(select * from sys.indexes where name = 'PK_ConnectionState' AND object_id = object_id('dbo.ConnectionState'))
		alter table dbo.ConnectionState drop constraint PK_ConnectionState