Guest User

Untitled

a guest
Jul 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public void click (View view)
  2. {
  3. new Thread(new Runnable(){
  4. @Override
  5. public void run()
  6. {
  7. try {
  8. Class.forNam("com.microsoft.sqlserver.jdbc.SQLServerDriver");
  9. Connection con;
  10. con = DriverManager.getConnection("jdbc:sqlserver://IP:port;databaseName=DB;user=user;password=password");
  11. } catch (Exception e) {
  12. e.printStackTrace();
  13. }
  14. }
  15. }).start();
  16. }
Add Comment
Please, Sign In to add comment