"Experience sharing" common JDBC driver names and URLs list

Source: Internet
Author: User
Tags db2 informix microsoft sql server sql server driver postgresql sybase sybase database

ODBC Driver

Sun.jdbc.odbc.JdbcOdbcDriver

Jdbc:odbc:name


Connecting to the DB2 database with COM.ibm.db2.jdbc.net.DB2Driver

An example of a DB2 URL:

Jdbc:db2://aserver.mycompany.com:50002/name


Connecting to the Sybase database with Com.sybase.jdbc.SybDriver

An example of a Sybase URL:

jdbc:sybase:tds:aserver.mycompany.com:2025


MySQL Driver

Com.mysql.jdbc.Driver

Jdbc:mysql://hostname:3306/dbname?useunicode=true&characterencoding=gbk


Microsoft SQL Server Driver

Com.microsoft.jdbc.sqlserver.SQLServerDriver

Jdbc:microsoft:sqlserver://127.0.0.1:1433;databasename=wapsvc; User=sa; Password=pwd


Informix

Com.informix.jdbc.IfxDriver

Jdbc:informix-sqli://hostname:1526/dbname:informixserver=informixservername;user=username;password=password


Oracle

Oracle.jdbc.driver.OracleDriver

Jdbc:oracle:thin: @hostname:1521:<sid>


Postgresql

Org.postgresql.Driver

Jdbc:postgresql://localhost/soft


Apache Derby/java DB

Org.apache.derby.jdbc.ClientDriver

Jdbc:derby://localhost:1527/databasename;create=true


Access is connected through ODBC. Excel can also. You can even construct a connection string dynamically:


This allows you to connect directly to an Access database file.


Jdbc:odbc:driver={microsoft Access DRIVER (*.mdb)};D Bq=c:\mydata.mdb


Similar Excel files can be used in similar ways:


Jdbc:odbc:driver={microsoft Excel Driver (*.xls)};D Bq=.\mydata.xls


This article is from "Programming with the Old Wangxue" blog, please be sure to keep this source http://imentors.blog.51cto.com/10946447/1735434

"Experience sharing" common JDBC driver names and URLs list

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.