|
To make a Pervasive Client able to access a remote Pervasive.SQL database
This procedure explains how to create a Client DSN with the PCC. Client DSNs are used only on client workstations when connecting to a database engine.
Note
If you have not done so already, please review Prerequisites to Setting up Database Access before proceeding.
The PCC Namespace contains a list of database engines that have been registered.
If you do not see the name of the database engine you want to connect to, you must register the remote engine with PCC. To do so, right-click on Pervasive.SQL Engines then click Register New Engine.

A dialog box is displayed that allows you to choose the machine name where the Pervasive.SQL engine resides.



In the Server DSN field, select the Engine DSN on the machine that you want to associate with the Client DSN you are creating.
If you click Use advanced settings, see Client DSN Options in Advanced Operations Guide for a discussion of the settings.

Note
The Client DSN you have just created does not appear in PCC. It appears only in the ODBC Administrator as a System DSN. It also appears in the DSN list presented when local applications attempt to connect to ODBC data sources. Once you have created a Client DSN, you can remove or rename it from the ODBC Administrator, using the Remove or Configure buttons.
Tip
You can set the option to have Client DSNs appear in PCC by right-clicking on the database engine is the list and selecting View4Show Client Databases. Once you have set this option, you can remove or configure it using PCC.
Setting Up a Client DSN Using the ODBC Administrator
Note
Pervasive.SQL does not support File DSNs. You must use User or System DSNs. System DSNs are generally preferred, because they are available to all users on a given computer.
The following dialog box appears:


Do not modify the Network settings or TCP/IP Port Number unless you have first reviewed the information about these Client DSN options in Advanced Operations Guide.

If no databases appear in the drop-down list, either you selected the wrong server, or you need to have your system administrator name the server databases and create Engine DSNs for each of them before you can access them.
Setting Up a Client DSN on a Linux Workstation
While it is possible to access a database from a Linux server by a Linux client, there are no Pervasive.SQL utilities (except dsnadd) that can be used on the client. A Linux client configuration would be used for independent applications, such as web applications.
To add a client data source, execute the following command:
dsnadd -dsn=myDSN-desc=datasource-host=psqlhost-sdsn=svDSNmyDSN is a name you want to assign to the new Client DSN.
datasource is any string to describe the data source.
psqlhost is the name of the network host where your Pervasive.SQL database resides.
svDSN is the name of the Engine DSN on the Pervasive.SQL host.
Note
The datasource on the server must be named first.
For example, to create a Client DSN named TEST on host NewDev, where the Engine DSN name for the database is NewTest, type
For more information about the dsnadd utility, please see Getting Started with Pervasive.SQL (Server edition).
|
Chapter contents
Prev topic: Setting Up Database Access on a Linux Server
|