JDBC驱动下载汇总

为了自己JDBC驱动下载方便快捷,也便于网友的使用,特意把这些JDBC的驱动包下载汇总如下,。。。。说明:此内容来源于网络!。。。。。
Db Name: Microsoft SQL Server (6.5, 7, 2000 and 2005) and Sybase (10, 11, 12).  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: jTDS
Home Page: [url]http://jtds.sourceforge.net/[/url]
JDBC Ver: 1.0.2
Download: [url]http://sourceforge.net/project/showfiles.php?group_id=33291[/url]
Conn Code:
   Class.forName("net.sourceforge.jtds.jdbc.Driver ");
   Connection con = DriverManager.getConnection("jdbc:jtds:sqlserver://host:port/database","user","password");
or
   Connection con = DriverManager.getConnection("jdbc:jtds:sybase://host:port/database","user","password");

   Db Name: Microsoft SQL Server 2000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: SQL Server 2000 Driver for JDBC
Home Page: [url]http://www.microsoft.com/china/sql/[/url]
JDBC Ver: (SQL Server 2000 Driver for JDBC)
Download: [url]http://www.microsoft.com/china/sql/downloads/2000/jdbc.asp[/url]
Conn Code:
   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");  
   Connection conn = DriverManager.getConnection ("jdbc:microsoft:sqlserver://server1:1433","user","password");

   Db Name: Oracle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: Connector/J  
Home Page: [url]http://www.oracle.com/technology/software/tech/java/[/url]
JDBC Ver: (based on Oracle)
Download: [url]http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/[/url]
Conn Code:
   Class.forName("oracle.jdbc.driver.OracleDriver");
   Connection con = DriverManager.getConnection("jdbc:oracle:thin:@host:port:databse","user","password");

   Db Name: MySQL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: Connector/J
Home Page: [url]http://dev.mysql.com/[/url]
JDBC Ver: 3.1
Download: [url]http://dev.mysql.com/downloads/[/url]
Conn Code:
   Class.forName("com.mysql.jdbc.Driver");
   Connection con = DriverManager.getConnection("jdbc:mysql://host:port/database","user","password");

   Db Name: Sybase
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: jConnect  
Home Page: [url]http://www.sybase.com.cn/cn/content/SDN/[/url]
JDBC Ver: 4.5/5.5
Download: [url]http://www.sybase.com/detail_list?id=13&morenavId=8668&multi=true&SR=Y&show=1265[/url]
Conn Code:
Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
DriverManager.getConnection("jdbc:sybase:Tds:IP:2638?ServiceName="+database,"user","password");

   Db Name: Postgresql
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: PostgreSQL JDBC
Home Page: [url]http://jdbc.postgresql.org/[/url]
JDBC Ver: 8.0 Build 310
Download: [url]http://jdbc.postgresql.org/download.html[/url]
Conn Code:
   Class.forName("org.postgresql.Driver");  
   Connection con = DriverManager.getConnection("jdbc:postgresql://host:port/database","user","password");

   Db Name: IBM Informix
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: Informix JDBC Driver (IBM Informix JDBC V3.0)
Home Page: [url]http://www-306.ibm.com/software/data/informix/[/url]
JDBC Ver: 3.0.JC1
Download: [url]http://www14.software.ibm.com/webapp/download/search.jsp?go=y&rs=ifxjdbc[/url]
Conn Code:
   Class.forName("com.informix.jdbc.IfxDriver").newInstance();  
   Connection conn= DriverManager.getConnection("jdbc:informix-sqli://123.45.67.89:1533/myDB:INFORMIXSERVER=myserver;user=testuser;password=testpassword";);

   Db Name: IBM DB2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JDBC Name: DB2 JDBC Universal Driver
Home Page: [url]http://www-306.ibm.com/software/data/db2/udb/  [/url]
JDBC Ver:  
Download: [url]http://www-128.ibm.com/developerworks/db2/downloads/jcc/[/url]
Conn Code:
   Class.forName("com.ibm.db2.jdbc.app.DB2Driver ").newInstance();  
   Connection conn= DriverManager.getConnection("jdbc:db2://localhost:5000/sample",user,password);  

IBM AS400主机在用的 JDBC语法
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
有装 V4R4以上版本的 Client Access Express
  
可以在 C:\Program Files\IBM\Client Access\jt400\lib
  
找到 driver 档案 jt400.zip,并更改扩展名成为 jt400.jar
Conn Code:
   java.sql.DriverManager.registerDriver (new com.ibm.as400.access.AS400JDBCDriver ());
   Class.forName("com.ibm.as400.access.AS400JDBCConnection");
   con = DriverManager.getConnection("jdbc:as400://IP","user","password");  

   Db Name: Ms Access or Ms Foxpro
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Conn Code:
   step 1:
配置 odbc (例如: myDb)
   step 2:  
   String dbURL = "jdbc:odbc:myDb";
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection conn = DriverManager.getConnection(dbURL);  
or
   String dbURL = "jdbc:odbc:driver={MicrosoftAccessDriver(*.mdb)};DBQ=dabaseName.mdb";
   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection conn = DriverManager.getConnection(dbURL);

你可能感兴趣的:(java,jdbc,下载,驱动,休闲)