HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Add Column To Existing SQL Server Table with Default Constrain - SQL Server Tutorial

39,506 views October 26, 2015 11:15

Watch on YouTube
ChannelTechBrothersIT

Description from the creator

How to Add a Column with Values to Existing SQL Server Table - TSQL Tutorial / SQL Server Tutorial
We often have to add a new column to existing Table/s. Let's consider we have dbo.Customer table and we are US based company and we never did business outside USA. so we never need Country Column to our existing Table for Address as we only operator in USA. Now company has decided to expand the business and might have the customers from other countries. What we want to do , we want to add column to existing table with default value. All the existing values should be also updated to default value when we add this new column. Moving forward if no Country Name provided, It should take USA otherwise value provided.

blog post link for script
sqlage.blogspot.com/2015/03/how-to-add-column-w…

About this tutorial

TechBrothersIT published this 11:15 video tutorial on October 26, 2015. It has been watched 39,506 times on YouTube.

Duration
11:15
Published
October 26, 2015
Views
39,506
Likes
77

Tags

Share

Further reading

This tutorial in other languages