company logo

DataSource :: serverName - SERVER_NAME option

The server name refers to the name or the TCP/IP address of the server machine, where the object server is running.

Usually, this value is set in the configuration or ini-file in the SERVER_NAME option for the data source definition.

SERVER_NAME=server_name

Return value:  Server name ( odaba::String & )

Valid server name or IP address referring to the server in a client server application.

Implementation overview

Implementation details

  1. Get server name
    odaba::String DataSource  :: serverName (  )

    The function returns the server name. The server name might be empty when accessing local databases.

  2. to list
  3. Set server name
    odaba::String DataSource  :: serverName ( odaba::String &sServerName )

    The function allows setting the server name for the server to the data source should be connected. The function does not close the or reconnect the data source automatically, i.e. the server name should be set before connecting the data source ( connect() ).

    • sServerName - Server name

      Valid server name or IP address referring to the server in a client server application.

  4. to list