Current versions and usage of JDBC driver in each home

Source: Internet
Author: User
Tags microsoft sql server postgresql sybase
-->
-->

There are many friends who are looking forJDBC DriverOr how to useDriverOften ask questions,
On this side, I'll simply sort out the more representativeDriverHow to use.

microsoft SQL Server Series (6.5, 7.x and Watts) and Sybase 10

jdbc name:jtds url: http:// Jtds.sourceforge.net/
version: "!--? xml:namespace prefix = st1 ns =" ur N:schemas-microsoft-com:office:smarttags "/--> 0.5.1
download URL: http://sourceforge.net/project/showfiles.php?group_id=33291

syntax : "/ span>

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") ;



mysql
jdbc name:connector/j 3.0 url: http:// Www.mysql.com/
version: 3.0.8 -stable
download url:jdbc-stable.html "TARGET=_BLANK> http://www.mysql.com/downloads/ Api-jdbc-stable.html

syntax :

class.forname (" Com.mysql.JDBC.driver ");
Connection con = drivermanager.getconnection ("Jdbc:mysql://host:port/database", "User", "password");



oracle
jdbc name:connector/j 3.0 url: http:// Otn.oracle.com/
version: 3.0.8 -stable
download url:jdbc/content.html "TARGET=_BLANK> http://otn.oracle.com/software/tech/java/ Sqlj_jdbc/content.html

syntax :

Class.forName ("Oracle.") JDBC.driver.Oracledriver ");
Connection con = drivermanager.getconnection ("JDBC:oracle:thin: @host:p ort:databse", "User", "password");



Sybase

Driver: jConnect 4.5/5.5 (JDBC 2.0 please use 5.5)

Syntax :


Class.forName (" Com.sybase.JDBC2.JDBC.Sybdriver "). newinstance ();
Drivermanager.getconnection ("Jdbc:sybase:tds:ip:2638?" Servicename= "+ database name account ", " password ";



postgresql
jdbc name:postgresql jdbc url: jdbc.postgresql.org/"Target=_blank> http://jdbc.postgresql.org/
version: 7.3.3 build 110
download URL:JDBC . postgresql.org/download.html "TARGET=_BLANK> http://JDBC.postgresql.org/download.html

syntax :

class.forname (" Org.postgresql.driver ");
Connection con=drivermanager.getconnection ("Jdbc:postgresql://host:port/database", "User", "password");



ibm AS400 host in use jdbc syntax
has a loaded v4r4 the above version of the client Access express can be c:program Filesibmclient accessjt400lib
find driver file Jt400.zip , and change the extension to Jt400.jar

syntax Span lang= "en-us" >

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");

each family JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and usage syntax

-->
-->
<

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.