This section describes how to use DriverManager.getConnection() and connection URL for the Microsoft JDBC driver.

Once the JDBC driver class is loaded, you are ready to connect to a SQL Server
by using the DriverManager.getConnection(connection_url) method. The connection URL, connection_url,
is a string with the following syntax:

jdbc:sqlserver://server_name;user=login;password=****

The tutorial program below shows you a good example of using getConnection() and connection URL:

The error is probably caused by the port number where the SQL Server is listening
for the client connection. If port number is different than the default number,
you must specify the port number in the connection url as shown in the next tutorial.