if exists (select * from sys.default_constraints where name = 'DF_ConnectionLog_DataSourceID' and parent_object_id = object_id(N'dbo.ConnectionLog'))
    alter table dbo.ConnectionLog drop constraint DF_ConnectionLog_DataSourceID;