Query to check whether a column is nullable (null values are allowed in the column or not). It should preferably return yes/no or 1/0 or true/false.
You could retrieve that from sys.columns:
sys.columns
select is_nullable from sys.columns where object_id = object_id('Schema.TheTable') and name = 'TheColumn'
1.4m articles
1.4m replys
5 comments
57.0k users