java.lang.Object
com.microsoft.sqlserver.jdbc.SQLServerDriver
- All Implemented Interfaces:
Driver
Provides methods to connect to a SQL Server database and to obtain information about the JDBC driver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url)connect(String Url, Properties suppliedProperties)static voidDe-registers the driver with the DriverManager.intintgetPropertyInfo(String Url, Properties Info)static booleanChecks whether the driver has been registered with the driver manager.booleanstatic voidregister()Registers the driver with DriverManager.toString()
-
Constructor Details
-
SQLServerDriver
public SQLServerDriver()Creates a SQLServerDriver object
-
-
Method Details
-
toString
-
register
Registers the driver with DriverManager. No-op if driver is already registered.- Throws:
SQLException- if error
-
deregister
De-registers the driver with the DriverManager. No-op if the driver is not registered.- Throws:
SQLException- if error
-
isRegistered
public static boolean isRegistered()Checks whether the driver has been registered with the driver manager.- Returns:
- if the driver has been registered with the driver manager
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLServerException
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLServerException
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLServerException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver
-