Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Double Pad;
  2. SqlCommand cmd = new SqlCommand("SELECT * FROM M25 WHERE Mu/bd2 = Muad", con);
  3. SqlDataAdapter adp = new SqlDataAdapter(cmd);
  4. DataSet ds = new DataSet();
  5. try
  6. {
  7. con.Open();
  8. Pad = Convert.ToDouble(ds.Tables["M25"].Rows[0].ItemArray[2].ToString());
  9. }
  10. catch (Exception ex)
  11. {
  12. Console.WriteLine(ex.Message);
  13. }
  14. finally
  15. { con.Close(); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement