The purpose of this study is to determine whether markers of b-cell function can predict changes in B-cell function over time in patients with type 2 diabetes mellitus (T2DM) randomized to treatment with metformin or rosiglitazone.