🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #22765

Re: [jdbc]sos~~

#22765
From: �㶫ʮ��ܳ�����
Date: Fri, 05 Sep 2003 05:03
26 lines
1861 bytes
try{
      
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();

      Connection con=DriverManager.getConnection(remoteURL,"sms1","sms");
      Statement sts=con.createStatement();
      ResultSet rs=sts.executeQuery("select * from send_tysy");
      if(rs.next())
        System.out.println(rs.getString(1));
    }catch(Exception e){
      System.out.print(e);
    }

���ڵĴ�����no suitable driver,����~~~�����ס� 
�� �� jp (�㶫ʮ��ܳ�����) �Ĵ������ᵽ: �� : java��������
: sqlserver��ֱ����Ӧ�ÿ��Եذɣ�����һ��Ҫ����weblogic����tomcat�ذ�
: �� �� futurehope (jun) �Ĵ������ᵽ: ��
: : ������connection����statement�Ѿ����ˣ��㻹�ǰѴ����������
: : JDBC]Object 
: : Source)
: : com.microsoft.jdbc.base.BaseResultSet.validateClosedState(Unknown 


--
�� ��Դ:���㽭��ѧ���ɰٴ�վ bbs.zju.edu.cn��[FROM: jp]
Technical Details
Message-ID: <489Pgc$A0S@bbs.zju.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!ZJUBBS

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f6cb0,f1fd70f3d430400d
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-09-04 22:02:46 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!hermes.visi.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!ZJUBBS
From: jp.bbs@bbs.zju.edu.cn (�㶫ʮ��ܳ�����)
Newsgroups: cn.bbs.comp.lang.java
Subject: Re: [jdbc]sos~~
Date: 05 Sep 2003 05:03:29 GMT
Organization: �㽭��ѧ���ɰٴ�
Message-ID: <489Pgc$A0S@bbs.zju.edu.cn>
X-Filename: Java/M.1062738182.A
Lines: 26