Home | Previous Page | Next Page   Environment Variables > Using Environment Variables on Windows >

Rules of Precedence

When an IBM Informix product accesses an environment variable, normally the following rules of precedence apply:

  1. The highest precedence goes to the value that is defined in the environment by explicitly setting the value at the command prompt.
  2. The second highest precedence goes to the value that is defined in the System control panel as a User Environment Variable.
  3. The third highest precedence goes to the value that is defined in the System control panel as a System Environment Variable.
  4. The lowest precedence goes to the default value.

Important:
Because Windows services access only environment variables that are set in the registry, the preceding rules of precedence do not apply for IBM Informix native Windows applications. For native Windows applications, the highest precedence goes to variables that are explicitly defined in the registry, and the lowest precedence goes to the default value. In addition, if you set one or more environment variables before you start the database server, and you do not explicitly set the same environment variables for client products, the clients will adopt the original settings.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]