quarta-feira, 4 de setembro de 2013

Java Tip's - JOptionPane, JDBC call to SqlServer Stored Procedure

1. Introduction

I'm just gathering references to well done post and documentation about Java.

2. References

2.1. JOptionPane - Java MessageBox

2.2. JDBC call to Sqlserver Stored Procedure with parameters



    2.3. Reading and Writting Excel files using apache POI



      2.4. JDBC Sqlserver Getting value of last AUTOINC sequence column inserted

        pstmt = conn.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);
        int insertCount = pstmt.executeUpdate(); // execute insert statement
        System.out.println("Insert Count:" + insertCount);
        ResultSet resultSet = pstmt.getGeneratedKeys();
        if (resultSet != null && resultSet.next()) {
        logId = resultSet.getLong(1);
        }




        Nenhum comentário:

        Postar um comentário