Using the JDBC-ODBC bridge to connect to the Oracle database and JDBC driver is almost the same, so we don't have to set the environment variable. There are two key statements for connecting to the database in JDBC:
Class. forname ("oracle.
Today, there is a problem, although not a big problem, but for beginners also entangled me for a long time! (well)Problem:Running the JSP project does not connect to the database:Java.sql.SQLException: [MICROSOFT][ODBC Driver Manager] in the specified DSN, the architecture between the driver and the application does not match.I am using JDBC-ODBC
a username and password
-Ct=drivermanager.getconnection ("Jdbc:odbc:mytest"); the
- //3. Create statement or preparedstatement[differences]
-Sm=ct.createstatement ();//statement use: used primarily to send SQL statements to a database -
+ //4. Execute (crud, create DATABASE, back up database, delete data ...) - //Demo Adds a piece of data to the course table, executeupdate can perform add delete and modify operations
+
The first step in using JDBC-ODBC bridgingConfigure the data sourceUsed in 32-bit systems and 32-bit JDK environments, and now basically eliminated, using JDBC directly is very useful.1. Enter the Control Panel2.3.4.User dns: Select this is the only SQL Server user can log in, (recommended)System DNS: Select this is the user of this computer can log inAdd: is use
/** * Function: Demo using JDBC-ODBC bridge connection to manipulate SQL database * Xu Shouwei * Operation steps: * 1. Configure Data source * 2. Connect data source in program * 3. Operation data */package com.jasxu; Introduction of SQL packet import java.sql.*; public class T1 {/** * @param args */public static void main (string[] args) {//TODO auto-generated m
The front section describes how to create a data source in win7. After creating a data source, you can use it in a Java program: Create a Java program and write the following code in it: [this article is from www.68idc.cn]. The test is successful and no error is reported. It indicates that odbc has been connected to jdbc.
The front section describes how to create a data source in win7. After creating a dat
The steps to manipulate a database using the Jdbc-odbc bridge are as follows:
1. Configure the data source
Select control Panel → admin tools → data source, pop-up diagram dialog box
Click Add, select SQL SERVER
Click Finish to eject the following dialog box
(If you are connecting to a local server, fill it out locally or.)
Click Next
Click Next
The default c
Tags: maximum need NAT COM database system writing language standard independenceHttps://zh.wikipedia.org/zh-cn/ODBC ODBC, open Database Connectivity, provides a standard API (application programming Interface) method to access the database management system (DBMS). These APIs use SQL to accomplish most of their tasks. ODBC itself also provides support for the SQ
-odbc Bridge Launcher in the JDBC driver. The JDBC database driver for this category is the bottom layer of the ODBC driver to connect to the database. If the original application is based on an ODBC database driver, or if the dat
configuration cannot be common between different database servers. That is to say, install a demand configuration once. However, the JDBC database driver is not the same. If the JDBC database driver is used, only the appropriate JDBC database driver needs to be selected, and no additional configuration is required. During the installation process, the
One. JDBC (Java DataBase Connectivity Standard)1.JDBC, which is an object-oriented application interface (API) that allows access to a variety of relational databases.2. Driver (JDBC driver)To access a particular database through JDBC, you must have the appropriate JDBC driv
: we know that ODBC can connect almost all of the databases on almost all platforms. Why doesn't Java use ODBC? The answer is: Java can use ODBC, but preferably in the form of Jdbc-odbc Bridge (Java connection is generally divid
all platforms. Why does Java not Use ODBC? The answer is: Java Can Use ODBC, but it is best to use in the form of a JDBC-ODBC bridge (Java connection is generally divided into Java direct connection and JDBC-
I used jdbc to connect to the database before writing the program. Suddenly I learned how to connect to the database using odbc. I found that there is a difference between the two.JDBCClass. forName ("database driver name"); // such as com. microsoft. jdbc. sqlserver. string url = "jdbc: microsoft: sqlserver: // localh
can connect almost all of the databases on almost all platforms.Why doesn't Java use ODBC?The answer is: Java can use ODBC, but preferably in the form of Jdbc-odbc Bridge (Java connection is generally divided into two forms of Java direct and
Differences between jdbc and odbc: perception, learning..., jdbcodbc
What is JDBC? JDBC, fully known as Java DataBase Connectivity standard, is an object-oriented application interface (API) that can be used to access various relational databases. JDBC is also part of the ja
1,JDBC-ODBC driver to access sqlserver2008 Database
Principle of JDBC-ODBC Access Database
JSPProgram--> JBDC-ODBC driver --> ODBC driver ---> database so be sure to install ODBC dr
is the bridge between the JDBC API and the detailed database.Usually.
The Java program first uses the JDBC API to interact with the JDBC Driver Manager, and the JDBC Driver Manager loads the specified JDBC drivers, which can lat
efforts.
The JDBC standard is divided into two parts: the application development interface for application developers and the developer (usually database vendor) interface for database drivers. In the JDBC standard, the driver is divided into four types by operation.
Type 1:jdbc-odbc
From: web.tongji.edu.cn ~ Yangdydatabasepaper6.htmJDBC and ODBC Peng Xin Li Long return ---- Heterogeneous Database System is a database system composed of multiple heterogeneous member database systems, heterogeneity is reflected in the differences between member databases in terms of hardware platforms, operating systems, and database management systems. ---- In
From: http://web.tongji.edu.cn /~ Yangdy/database/paper6.htm
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.