Answers for "tsql default column value"

SQL
2

alter table add column with default value

ALTER TABLE Protocols
ADD ProtocolTypeID int NOT NULL DEFAULT(1)
Posted by: Guest on August-03-2020
6

set default column value sql

Name Varchar(255) default "Fred"
Posted by: Guest on March-28-2020
0

how to check default value of column in sql server

SELECT object_definition(default_object_id) AS definition
FROM   sys.columns
WHERE  name      ='colname'
AND    object_id = object_id('dbo.tablename')
Posted by: Guest on June-18-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language