Are restraint of trade clauses enforceable in court?

Restraints of trade clauses become important in the sale of business context and also in employment and other contracts.  This article is written in the context of a sale where the contract contains a restraint of trade clause so as to give some general understanding...