The study hypothesis was In women with gestational diabetes and type 2 diabetes in pregnancy metformin treatment compared with insulin will result in better perinatal and maternal outcome and improved treatment acceptability with low or noadditional insulin requirement.