Configuring a Connection SECTION 12 Databases
185
The above is just the list of standard providers supplied by Microsoft. Other
vendors are actively creating their own.
12-2-5 Creating a Data Source Name file
A Data Source Name file (or DSN for short) stores information about a
database connection in a file. The file has the extension .DSN and by default is
stored in the "$\Program Files\Common Files\ODBC\Data Sources" directory.
This type of file can be viewed with a suitable text editor e.g. "Notepad". One
advantage of using a DSN file over specifying the full path of the database is
that the DSN file remains unchanged while its contents can be re-configured to
reflect any changes in directory or database file name etc.
12-2-5-1 Creating a New DSN
• For Windows 98, ME and NT: From your Windows 'Control Panel', select
the ODBC Data Sources icon. This will show the ODBC Data Source
Administrator dialog box. For Windows 2000 and XP: From the 'Programs'
folder, select 'Administrative tools' and 'Data Sources (ODBC) icon (note
this is only available if the logged in user has administrative rights, and the
Taskbar properties "Display Administrative Tools' option is checked). This
will show the ODBC Data Source Administrator dialog box.
• Click the 'File DSN' tab. Any Data Source Names already defined are
listed.
• Click on 'Add' to create a new Data Source Name file. This will invoke the
Create New Data Source dialog box with a list of available drivers (only
drivers that are installed on your machine will be shown).
• Choose the driver to access the data source and select 'Next >'.
• You will then be prompted to name your Data Source. Type a suitable
name and select 'Next >'
• Verify the information shown and select 'Finish' to complete this part of the
operation.
• Depending on the driver selected, you may be prompted for details of the
database you wish to connect to.
• A new DSN file will now exist which can be used by CX-Supervisor to
Create a Connection.
Index Server MSIDXS For Microsoft Index Server.
ODBC
Drivers
MSDASQL For existing ODBC Drivers, this ensures
that legacy data is not omitted.
Oracle MSDAORA Native Oracle driver simplifies access to
existing Oracle data stores.
SQL Server SQLOLEDB For Microsoft SQL Server.
Data Shape MSDataShape For hierarchical recordsets, this allows the
creation of master/detail type recordsets,
which allow drilling down into detailed data.
Persisted
Records
MSPersist For locally saved recordsets.
Simple
Provider
MSDAOSP For creating your own providers for simple
text data.
Type Provider Name Description