Sweat connections are the way. Easy, strong, and won’t leak if done properly.
As the previous poster said, clean the fitting and pipe, use flux, and heat the fitting and not the joint (so you don’t burn off the flux). If you burn off the flux, the solder won’t flow into the joint and you’ll...