Java database connection_ JDBC ODBC bridge connection mode (detailed explanation)

JDBC ODBC bridge connection mode operation database Su (course)

Steps:

1. Configure data sources

Search management tools in the control panel - > ODBC data source (32-bit) - > Add - > select SQL Server (fill in the name mytest, server local or.) - > Next - > change the default database to su - > next - > test the data source to success

The user data source will have one more mytest. So far, the configuration of the data source is successful.

@H_ 502_ 19@

2. Connecting data sources in programs

Open eclipse and write the program.

Execute the program, and the console output is added successfully.

Open SQL server2012 and check the course table of Su database. If there is one more data, the operation is successful.

The above Java database connection_ JDBC ODBC bridge connection method (detailed explanation) is all the content shared by Xiaobian. I hope it can give you a reference and support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>