public static bool ConstraintExists( SqlConnection connection, string tableName, string constraintName )
Parameters
- connection
- the sql connection
- tableName
- Name of the table
- constraintName
- Name of the constraint to check for
Return Value
True if the constraint exists for the table, false otherwise.