Miscellaneous notes about Java Database operations

Source: Internet
Author: User

One

JDBC is a database programming API, encapsulating a series of operations on the database.

JDBC can create a connection to the database, send an SQL statement, and process the return result of the SQL statement

Two

Then, it's not enough for the light to have JDBC.

We also need the Java Connection database driver (this driver, the Java and the database connection, the equivalent is in the database inserted a pipe, my understanding, haha, drive this thing compared to the bottom, the principle of what I now also do not understand, understand the hope to tell me ~)

I'm using open source for this drive.

Jtds class of drive, put this jar package in the Lib directory will be OK ~

Three.

Then there will be two files in the Java program's DB directory

. MDF: A database data file that holds data information for a database.

. LDF: A database log file that holds an update operation on the database.

We need to restore these two files to SQL Server.

Four.

In the SQL Server left column database, right-click Attach, select the required. mdf file is OK.

Learning Java from getting started to mastering, running the big project behind

It worked!!! Next learn the source, Rome cold day, continue to refuel ~

Miscellaneous Notes about Java Database operations

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.