Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. var dString = "Persist Security Info = False; User ID = DVA234_2018_B6; Password = Carbonara123; Initial Catalog = DVA234_2018_B6_db; Server = www4.idt.mdh.se";
  2. var loginCollection = new SqlConnection(dString);
  3. loginCollection.Open();
  4. while ((loginCollection.State & ConnectionState.Open) != 0)
  5. {
  6. return true;
  7. }
  8. return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement