In some cases of chronic pancreatitis, surgery is used to relieve pain by draining an enlarged pancreatic duct. Occasionally, part of the pancreas is removed to relieve pain.