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