Pairing near CDW and SDW metal-semiconductor transitions is analyzed for a 2-D lattice within an RPA approximation. We find that s-wave pairing can occur near the CDW transition provided the on-site U is not too large, while d-wave pairing occurs near an SDW transition.