Answers for "provide default value to @value in sql"

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
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