Preventing freezing in a water line running out through an exterior wall
I need to run a water line from my house to my barn. The line will run through my basement, exit the house, and run underground to the barn. It's a walk-out basement with a concrete slab floor, and the wall where the pipe will exit the house is a stud-wall that's entirely above grade. I'm in North Carolina where the temperature can occasionally get down to the single digits in the winter, so freezing is an issue for any portion that's exposed to the outside.
Is it okay to run the water line out through the wall, down the exterior of the house, and then into the ground? This saves me the enormous pain of drilling down through the slab and somehow tunneling under the footings to avoid exposure to the outside air. If so, what type of tubing should I use for the exposed portion and how should I insulate it?