how to check default value of column in sql server
snippet in sql

how to check default value of column in sql server

user3369

SELECT object_definition(default_object_id) AS definition
FROM   sys.columns
WHERE  name      ='colname'
AND    object_id = object_id('dbo.tablename')