How to programmatically check whether a database table contains a specified column?

See also: