The present invention provides certain heterocyclic sulfonamide derivatives of formula (I): useful for potentiating glutamate receptor function in a patient and therefore, useful for treating a wide variety of conditions, such as psychiatric and neurological disorders.