Guest User

Untitled

a guest
Jan 16th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. DataSet ds = new DataSet();
  2. string conn = "Data Source='99.999.1.99,18650';Initial Catalog='CATL';User ID='aaa';Password='bbb';";
  3.  
  4. using (SqlConnection con = new SqlConnection(conn))
  5. {
  6. using (SqlDataAdapter da = new SqlDataAdapter("select * from DBA.tbl", con)
  7. {
  8. da.Fill(ds);
  9. }
  10. }
Add Comment
Please, Sign In to add comment