Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void click (View view)
- {
- new Thread(new Runnable(){
- @Override
- public void run()
- {
- try {
- Class.forNam("com.microsoft.sqlserver.jdbc.SQLServerDriver");
- Connection con;
- con = DriverManager.getConnection("jdbc:sqlserver://IP:port;databaseName=DB;user=user;password=password");
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }).start();
- }
Add Comment
Please, Sign In to add comment