The sweat gland is a long, coiled, hollow tube of cells. The coiled part in the dermis is where sweat is made, and the long part is a duct that connects the gland to the opening or pore on the skins's outer surface. Nerve cells from the sympathetic nervous system are connected to the sweat glands. There are two types of sweat glands: