set default value for existing column in sql server code example Example: add column table sql default value ALTER TABLE users ADD visit_number INT DEFAULT 0;