Initially a nasogastric tube is placed which ends in the stomach. Some tubes can go further, into the jejunum. For patients who are thought likely to need very long term support, nasogastric tubes can cause problems - erosions on the nostrils, a chance of aspiration of stomach contents, etc, so the very long term patients may have a tube placed directly througth the abdominal wall into the stomach or small intestine. These are called PEGS - for PErcutaneous Gastrostomy.
There are a varierty of standard nasogastric feeds available which supply all the neccessary energy and vitamin requirements, and there isn't a lot of difference between them. Then can vary in calorie density, fibre and salt content and the like.