Added check for incorrect constraints for mssql