I'm assuming you're talking about joining rigid metallic tubing to a piping system.
Generally a tubing compression fitting male connector is attached to the pipe by any joining method permitted in the piping code and your piping specification. Generally a valve is installed at transitions like this such that leaking tube joints can be repaired without draining the piping.
Making the connection at a threaded or flanged joint allows you to easily renew the male connector when it is beyond its service life. All compression fittings have a limited number of assembly/disassembly cycles before they start to leak in a way that can't be repaired just by tightening. Tube fittings welded directly to pipe or to pipe tees can be used where permitted by piping specifications and code, but repair of the tube fitting will then require the fitting to be cut out and a new one welded in place.
Some vendors of fittings sell flange adapters which consist of a flange and male connector body machined from a single forging. It is not necessary to buy these but they are convenient if you have no access to welding and threading is not permitted. Instead, you can use a threaded or socket weld reducing flange, or if the flanged joint is large enough relative to the tube fitting to fall within the limits imposed by ASME B16.5, you can drill and tap or weld to a blind flange.
In addition to the block valve to isolate the tubing from the pipe, a check valve immediately at the injection point is a good idea in cases where the tube is being used for chemical addition. That's of no use for sample points or instrument taps though.
Tubing needs to be physically safeguarded against mechanical damage in areas where such damage is likely. Physical safeguarding is essential if the tubing is plastic.