SQL Server Transact Basic to Expert - Add Default constraints to existing table

This blog shows how to add a default constraint to an existing table

Syntax:

ALTER TABLE tablename
ADD CONSTRAINT constraintname
DEFAULT defaultvalue
FOR columnname
Ebook Download
View all
SQL Jobs
Read by 0 people
Download Now!
Learn
View all