07-31-2023, 09:45 AM
This can also be done through the SSMS GUI.
1. Put your table in design view (Right click on table in object explorer->*Design*)
2. Add a column to the table (or click on the column you want to update if it already exists)
3. In Column Properties, enter `(getdate())` in *Default Value or
Binding* field as pictured below
[![Image of table in design view][1]][1]
[1]:
1. Put your table in design view (Right click on table in object explorer->*Design*)
2. Add a column to the table (or click on the column you want to update if it already exists)
3. In Column Properties, enter `(getdate())` in *Default Value or
Binding* field as pictured below
[![Image of table in design view][1]][1]
[1]: