Quantcast
Viewing all articles
Browse latest Browse all 91

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

In SQL Server 2008-R2, I go to the design mode - in a test database - and add my two columns using the designer and made the settings with the GUI, and then the infamous Right-Click gives the option "Generate Change Script"!

Bang up pops a little window with, you guessed it, the properly formatted guaranteed-to-work change script. Hit the easy button.


Viewing all articles
Browse latest Browse all 91

Trending Articles