- 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 booleanacceptsURL(String url)Connectionconnect(String url, Properties suppliedProperties)static voidderegister()De-registers the driver with the DriverManager.intgetMajorVersion()intgetMinorVersion()LoggergetParentLogger()DriverPropertyInfo[]getPropertyInfo(String url, Properties info)static booleanisRegistered()Checks whether the driver has been registered with the driver manager.booleanjdbcCompliant()static voidregister()Registers the driver with DriverManager.StringtoString()
-
-
-
Method Detail
-
register
public static void register() throws SQLExceptionRegisters the driver with DriverManager. No-op if driver is already registered.- Throws:
SQLException- if error
-
deregister
public static void deregister() throws SQLExceptionDe-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:
connectin interfaceDriver- Throws:
SQLServerException
-
acceptsURL
public boolean acceptsURL(String url) throws SQLServerException
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLServerException
-
getPropertyInfo
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLServerException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLServerException
-
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
getParentLogger
public Logger getParentLogger()
- Specified by:
getParentLoggerin interfaceDriver
-
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
-