Interfaces file

The interfaces file is a dictionary of connection information for Adaptive Servers and Open Server applications. For every server to which a client might connect, the interfaces file contains an entry that includes the server name and the necessary information to connect to that server.

The interfaces file is the default directory for Client-Library. However, applications may be configured to use a Sybase directory driver so that Client-Library uses a network-based directory service provider. For information on configuring Sybase directory drivers, see the Open Client and Open Server Configuration Guide. For information on network-based directory services, see “Directory services”.

On most platforms, the interfaces file is an operating system file in text format. On these systems, the default name, default location, and internal format of the interfaces file differs by platform. Other platforms use an alternate form of storage. Table 2-22 summarizes interfaces files for some common platforms.

Table 2-22: Name of the interfaces file by platform

Platform or platform family

File name

UNIX (all)

interfaces

Path is specified by the setting of the SYBASE environment variable.

Windows 98, Windows NT, Windows 2000, and Windows XP

sql.ini

Path is specified by the setting of the SYBASE environment variable.

Applications can set the CS_IFILE context property to specify a file name and location that are different from the defaults. (See “Location of the interfaces file”).