Class SqlServerDatabase


public class SqlServerDatabase extends ServerDatabase
A SQL Server server, over its wire protocol with no driver. See ServerDatabase.
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      The port SQL Server listens on unless configured otherwise.
      See Also:
  • Constructor Details

    • SqlServerDatabase

      public SqlServerDatabase(String host, int port, String database, String user, String password) throws IOException
      Connects WITHOUT TLS (sslMode=disable): the password and the data cross the network unencrypted. Connecting, and each wait for the server, may take 30 seconds.
      Throws:
      IOException
    • SqlServerDatabase

      public SqlServerDatabase(String host, int port, String database, String user, String password, String sslMode, int timeoutMillis) throws IOException
      Connects and signs in; see ServerDatabase for sslMode.
      Throws:
      IOException