This case-control study evaluates whether treatment with sodium-glucose cotransporter 2 inhibitors is associated with rates of postoperative euglycemic ketoacidosis, acute kidney injury, and mortality within 30 days after surgery. This evidence concerns the gene SLC5A2 and acute kidney injury.