Ants in the Pantry
For the small ants we like to use baits, specifically the gel or liquid ant baits. Don't spray, or at least not near the baits as you will be working against your baiting strategy. Make multiple bait locations and be patient. If you use the gels, which come in a syringe, place the bait on small squares of wax paper or equivalent for easier clean up.
The gels/liquid ant baits are available at all retail locations, some are boric acid based and some are hydramethylnon, both are effective. The important thing is to use gels/liquids as they are accepted quite well over the dry bait stations.