I would like to check the column already has default constraint or not only with the table name and column name data.With that record count we can create the constraint.
Do we have any other property to check the constraint exists for that column in dataset?
the query
will return the default value specified for a column (
null
if no default was defined)Update:
The following query will also retrieve the constraint's name:
If no rows are returned, then there's no default constraint defined on the column.