- java.lang.Object
-
- com.microsoft.sqlserver.jdbc.SQLServerDriver
-
-
Constructor Summary
Constructors Constructor Description SQLServerDriver()
Creates a SQLServerDriver object
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptsURL(String url)
Connection
connect(String url, Properties suppliedProperties)
static void
deregister()
De-registers the driver with the DriverManager.int
getMajorVersion()
int
getMinorVersion()
Logger
getParentLogger()
DriverPropertyInfo[]
getPropertyInfo(String url, Properties info)
static boolean
isRegistered()
Checks whether the driver has been registered with the driver manager.boolean
jdbcCompliant()
static void
register()
Registers the driver with DriverManager.String
toString()
-
-
-
Method Detail
-
register
public static void register() throws SQLException
Registers the driver with DriverManager. No-op if driver is already registered.- Throws:
SQLException
- if error
-
deregister
public static void deregister() throws SQLException
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
public Connection connect(String url, Properties suppliedProperties) throws SQLServerException
- Specified by:
connect
in interfaceDriver
- Throws:
SQLServerException
-
acceptsURL
public boolean acceptsURL(String url) throws SQLServerException
- Specified by:
acceptsURL
in interfaceDriver
- Throws:
SQLServerException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLServerException
- 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
public Logger getParentLogger()
- Specified by:
getParentLogger
in interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interfaceDriver
-
-