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