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