a guest Jun 25th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- SqlCommand command = conn.CreateCommand();
- command.CommandText = "select Test from PrescTest pt, Prescription p where pt.idPresc=p.idPresc";
- SqlDataReader dr2 = command.ExecuteReader();
- if (dr2.HasRows)
- string Tests ="";
- while (dr2.Read())
- // get the results of column "Test"
- Tests += dr2["Test"].ToString() + System.Environment.NewLine;
- TextBox15.Text = Tests.Trim();
RAW Paste Data