Many patients showed suboptimal glycemic control. Lower levels of glycated hemoglobin were associated with lower diabetes-related health care costs. Integration of administrative databases and a laboratory database appears to be suitable for showing that appropriate management of diabetes can help to achieve better resource allocation.