jdbc sql connection string 1

jdbc sql connection string

db_url      = jdbc:microsoft:sqlserver://HOST:1433;DatabaseName=DATABASE
db_driver   = com.microsoft.jdbc.sqlserver.SQLServerDriver
db_username = USERNAME
db_password = PASSWORD

Here is what the above code is Doing:
1. It’s importing the necessary libraries.
2. It’s creating a connection to the database.
3. It’s creating a cursor object.
4. It’s executing a query.
5. It’s fetching the results of the query.
6. It’s printing the results.
7. It’s closing the cursor object.
8. It’s closing the connection.

Similar Posts