Chapter 3. Install FreeTDS

 

If you install it they will stay?

Table of Contents
The local environment
Choosing a TDS protocol version
servername Lookup
The freetds.conf file
The locales.conf file
Environment variables
Port/instance override syntax
Confirm the installation

NoteConfusing terminology
 

"Configuring" and "installing" don't have absolute, context-free definitions. In some circles, we install a product and then configure it. In the GNU world, we configure the package (generate the Makefiles), then we make install the package. In the case of a library package such as FreeTDS To install the package is to copy the files the application developer will use to their canonical locations: header files to include, libraries to the lib, documentation and man pages share. Install targets were specified during the build process as arguments to configure, covered in the last chapter.

For lack of a better term, this chapter describes installing the product. Put more specifically, once we're done with the package manager, we still have to tell FreeTDS about your database servers, and we still have to tell your client programs about FreeTDS.

The local environment

After FreeTDS has been built and installed, it still doesn't know where your servers are or what particular version of Sybase or Microsoft software each one is using.

The purpose of this section is to explain how to describe your servernames to FreeTDS. FreeTDS looks up your server's attributes in freetds.conf. Some of the attributes can be overridden by environment variables.

One of the more important (and arcane) settings is the TDS protocol version, described next.