Specifying Connection Properties
You can specify connection properties using a connection URL, the JDBC Driver Manager, or SQL Server 2000 JDBC data sources. For the list of the connection properties, see "SQL Server 2000 JDBC".
Using Connection URLs or the JDBC Driver Manager
In order of precedence, you can specify connection properties using the following methods defined in java.sql.DriverManager:
- Url, user and password Strings, specified using the getConnection(url, user, password) method.
- Url String and java.util.properties Object, specified using the getConnection(url, java.util.properties) method.
- Url String only, specified using the getConnection(url) method.
Using SQL Server 2000 JDBC Data Sources
In order of precedence, you can specify connection properties using the following methods defined in javax.sql.DataSource class:
![]() |
Previous Page |
![]() |
Next Page |
![]() |
Synchronize with Contents |