File Data Sources
A file data source streamlines the connection process, because the .DSN file
contains the connection string that would otherwise have to be built for a call
to the SQLDriverConnect function. Another advantage of the .DSN file is that it can be copied to any
machine, so that identical data sources can be used by many machines as long as
they have the appropriate driver installed. A file data source can also be
shared by applications. A shareable file data source can be placed on a network,
and used simultaneously by multiple applications.
A .DSN file can also be unshareable. An unshareable .DSN file resides on a
single machine, and points to a machine data source. Unshareable file data sources
exist mainly to allow the easy conversion of machine data sources to file data
sources so that an application can be designed to work solely with file data
sources. When the Driver Manager is sent the information in an unshareable file
data source, it connects as necessary to the machine data source that the .DSN
file points to.
For more information about file data sources, see “Connecting Using File Data Sources” in Chapter 6, “Connecting to a Data Source or Driver,” or the SQLDriverConnect function description.