Guest User

Untitled

a guest
Feb 16th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Connection conn = DriverManager.getConnection("jdbc:sqlserver://hostname:1433;user=<username>;password=<password>;database=<dbname>");
  2. Statement sta = conn.createStatement();
  3. String Sql="EXEC spGetCustomerDetail 123455789";
  4. ResultSet rs = sta.executeQuery(Sql);
  5. custMapper mapper = new custMapper ();
  6. List<Cust> authdata = new ArrayList<Cust>();
  7. System.out.println("insideapi");
  8. while (rs.next()) {
  9.  
  10.  
  11. System.out.println(rs.getString("result"));
  12.  
  13. }
  14.  
  15.  
  16. return null;
Add Comment
Please, Sign In to add comment