").netInstance(); 这个方法对吗 ?
我记得有个 newInstance() 什么的方法
呵呵,我不太直到,只是提示一下 :)

解决方案 »

  1.   

    前面是我打错了
    改成newInstance()后出现的问题:
    unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
      

  2.   

    呵呵,简单了,加上 try{ 你的代码 } catch(){}就行了.
      

  3.   

    catch(Exception e){e.print....();}
    如果有错,可以看出错信息...