Quantcast
Channel: How to add a column with a default value to an existing table in SQL Server? - Stack Overflow
Viewing all articles
Browse latest Browse all 91

Answer by usefulBee for Add a column with a default value to an existing table in SQL Server

$
0
0

If the default is Null, then:

  1. In SQL Server, open the tree of the targeted table
  2. Right click "Columns" ==> New Column
  3. Type the column Name, Select Type, and Check the Allow Nulls Checkbox
  4. From the Menu Bar, click Save

Done!


Viewing all articles
Browse latest Browse all 91

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>