Line 62: cmd.Connection = con; Line 63: con.Open(); Line 64: userId = Convert.ToInt32(cmd.ExecuteScalar()); Line 65: con.Close(); Line 66: }