The study tests whether pioglitazone (PIO)as compared to metformin (MET)affects bone health including bone mineral density, bone turnover markers, and osteocyte biomarker in patients with type 2 diabetes (T2DM).