Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connection conn = DriverManager.getConnection("jdbc:sqlserver://hostname:1433;user=<username>;password=<password>;database=<dbname>");
- Statement sta = conn.createStatement();
- String Sql="EXEC spGetCustomerDetail 123455789";
- ResultSet rs = sta.executeQuery(Sql);
- custMapper mapper = new custMapper ();
- List<Cust> authdata = new ArrayList<Cust>();
- System.out.println("insideapi");
- while (rs.next()) {
- System.out.println(rs.getString("result"));
- }
- return null;
Add Comment
Please, Sign In to add comment