Microsoft has been committed to improving interoperability and has released a new Java database connection (JDBC) driver.Program. All SQL Server users can download SQL Server JDBC driver 2.0 for free, you can access SQL Server 2000, SQL Server 2005, and SQL Server 2008 from any Java application, application server, or small Java programs.This is a type 4
("Sun.jdbc.odbc.JdbcOdbcDriver");Connection cn = Drivermanager.getconnection ("JDBC:DBC:" + sDsn, SUSR, spwd);8.DB2 class.forname ("Com.ibm.db2.jdbc.net.DB2Driver");String url= "Jdbc:db2://192.9.200.108:6789/sample"cn = Drivermanager.getconnection (URL, susr, spwd);9.access because Access does not run as a service, the URL method does not apply to him. Access can also find. mdb files through ODBC or server map paths, see http://rmijdbc.objectweb.org/
Tags: database jdbc DriverODBC DriverSun.jdbc.odbc.JdbcOdbcDriverJdbc:odbc:nameConnecting to the DB2 database with COM.ibm.db2.jdbc.net.DB2DriverAn example of a DB2 URL:Jdbc:db2://aserver.mycompany.com:50002/nameConnecting to the Sybase database with Com.sybase.jdbc.SybDriverAn example of a Sybase URL:jdbc:sybase:tds:aserver.mycompany.com:2025MySQL DriverCom.mysq
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.