java/8274: dgfdsg
feichunyong@sina.com
feichunyong@sina.com
Thu Oct 17 23:56:00 GMT 2002
>Number: 8274
>Category: java
>Synopsis: dgfdsg
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: spammer
>Arrival-Date: Thu Oct 17 23:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: dfgdsfg
>Release: unknown-1.0
>Organization:
>Environment:
fdsfg
>Description:
dssg
>How-To-Repeat:
dfgd
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="新建 文本文档 (2).txt"
Content-Disposition: inline; filename="新建 文本文档 (2).txt"
/**address: SQL ServerµÃì½Ã²ÃÃý*/
String address = "jdbc:microsoft:sqlserver://127.0.0.1:1433";
/**user: Ãý¾Ã¿âÃû§Ãû*/
String user="sa";
/*passwd: Ãû§ÃÃÃë*/
String passwd="";
String database = "fancy";
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn = DriverManager.getConnection(address,user,passwd);
conn.setCatalog(database);
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(strSQL);
More information about the Java-prs
mailing list