Home | Previous Page | Next Page   Environment Variables >

Where to Set Environment Variables on Windows

You can set environment variables in several places on Windows, depending on which IBM Informix application you use.

For native Windows IBM Informix applications, such as the database server, environment variables can be set only in the Windows registry. Environment variables set in the registry cannot be modified elsewhere.

For utilities that run in a command-prompt session, such as dbaccess, environment variables can be set in several ways, as described in Environment Settings for Command-Prompt Utilities .

The SET ENVIRONMENT statement of SQL can set certain routine-specific environment options. For more information, refer to the description of SET ENVIRONMENT in the IBM Informix: Guide to SQL Syntax.

To use client applications such as ESQL/C or the Schema Tools on Windows environment, use the Setnet32 utility to set environment variables. For information about the Setnet32 utility, see the IBM Informix: Client Products Installation Guide for your operating system.

In IBM Informix ESQL/C, you can set supported environment variables within an application with the ifx_putenv( ) function and retrieve values with the ifx_getenv( ) function, if your Windows system supports them. For more information on ifx_putenv( ) and ifx_getenv( ), see the IBM Informix: ESQL/C Programmer's Manual.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]