How to see the default value for a column in SQL Server

Management studio wont show the default value, so here’s a query that gives you the information you need:

USE <database>;
SELECT object_definition(default_object_id) AS definition
FROM   sys.columns
WHERE  name      ='<mycolumnname>'
AND    object_id = object_id('<schema>.<tablename>')