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 TypeMethodDescriptionboolean
acceptsURL(String url)
connect(String Url, Properties suppliedProperties)
static void
De-registers the driver with the DriverManager.int
int
getPropertyInfo(String Url, Properties Info)
static boolean
Checks whether the driver has been registered with the driver manager.boolean
static void
register()
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:
connect
in interfaceDriver
- Throws:
SQLServerException
-
acceptsURL
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLServerException
-
getPropertyInfo
- Specified by:
getPropertyInfo
in interfaceDriver
- Throws:
SQLServerException
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersion
in interfaceDriver
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersion
in interfaceDriver
-
getParentLogger
- Specified by:
getParentLogger
in interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliant
in interfaceDriver
-