Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dString = "Persist Security Info = False; User ID = DVA234_2018_B6; Password = Carbonara123; Initial Catalog = DVA234_2018_B6_db; Server = www4.idt.mdh.se";
- var loginCollection = new SqlConnection(dString);
- loginCollection.Open();
- while ((loginCollection.State & ConnectionState.Open) != 0)
- {
- return true;
- }
- return false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement