打印本文 打印本文 关闭窗口 关闭窗口
Java 实现连接sql server 2000(JDBC数据库访问例子)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数10644  更新时间:2007/11/14 13:08:29  文章录入:mintao  责任编辑:mintao

                     con.close();

              }

              catch(SQLException ex)

              {

            System.out.println(ex.toString()+"----SQLException caught----");

                     while(ex!=null)

                     {

                            System.out.print("SQLState:"+ex.getSQLState());

                            System.out.print("Message:"+ex.getMessage());

                            System.out.print("Vendor:"+ex.getErrorCode());

                ex=ex.getNextException();

                            System.out.println("");

                     }

              }

              catch(java.lang.Exception ex)

              {

                     ex.printStackTrace();

              }

}

             

              private static boolean checkForWarning(SQLWarning warn)

  &

 << 上一页  [11] [12] [13] [14]  下一页

打印本文 打印本文 关闭窗口 关闭窗口