Makes a connection to the database.

语法

public java.sql.Connection connect(java.lang.String Url,
                                   java.util.Properties suppliedProperties)

参数

Url

A String value that contains the URL that is used to connect to the database.

suppliedProperties

A set of string value pairs used as connection arguments.

返回值

A Connection object.

异常

SQLServerException

备注

This connect method is specified by the connect method in the java.sql.Driver interface.

另请参见

SQLServerDriver Class
SQLServerDriver Methods
SQLServerDriver Members