Vitamin D, magnesium, and B12 deficiencies were common among people with type 2 diabetes according to new research.