|
To Set Up Database Access on Windows
Note
If you have not done so already, 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 to which you want to connect, you must register the remote engine with PCC. To do so, right-click Pervasive.SQL Engines then click Register New Engine.

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


If the database you wish to access is visible, then it already has an Engine DSN. You are finished with this procedure. Go to Setting Up Client Access for instructions on how to set up the client machines with Client DSNs.
If you do not see the database you wish to access, proceed with step 6.
If you are working with a Server engine and you are not logged into the server as a user with system administrator permissions, you see the login screen shown below.

If you are using Workgroup engine, or you are using the server console or are already logged into the server with system administrator permissions, skip to step 8 as shown in Figure 2-11.
Remember that you must have full administrator-level rights on the server operating system to be able to complete this task.
Click Next.
In the Directory field, specify the location of the data files.

Note
If you are working with a Server engine, you must specify a full path (not a mapped drive) that makes sense on the server. The Server engine cannot interpret mapped drive paths. For example, if you have a mapped drive S:\data1\datafiles on your client, referring to the folder C:\servers\data1\datafiles on the server, you must enter the server-based directory, C:\servers\data1\datafiles.
If you wish to use any advanced features, such as specifying that the DDFs and data files are not located in the same directory, that the DDFs and data files are located in multiple directories, or modifying the default DBNAME settings, you must click the Use advanced settings option.
The final wizard step verifies the successful creation of the database.
The database is ready to access. If you just created a Server DSN for the database engine, you must proceed to setting up client DSNs on each client workstation as explained in Setting Up Client Access .

In the DSN Open Mode field, choose Normal unless you have reviewed the other options as described in Advanced Operations Guide.
In the Database name field, choose the DBNAME of the database for which you wish to create the Engine DSN. If you find the DBNAME you want, click Next and return to step .
If the DBNAME you want to access is not listed, click the Create button to create an internal DBNAME for the database. Click Next.

Leave Integrity enforced checked if you plan to enforce the referential integrity rules defined in the database. Usually it is a good idea to do so.
Click Bound (DDFs created) if you want to prevent any other databases from being associated with these DDFs and data files. Checking this option creates a new set of empty DDFs. Do not click this option if you are setting up access to an existing database.
In the Dictionary location box, type or select the location of the DDFs. This location can be the location of existing DDFs if you are setting up an existing database for use with ODBC, or it can be an empty directory if you are creating a new database.
In the Data file location box, you must accept the default or browse to the location of the data files. This location can be the location of existing data files if you are setting up an existing database for use with ODBC, or it can be an empty directory if you are creating a new database.
Click OK to close the Create Database Name window. This returns you to the Create Database Wizard.
|
Chapter contents
Prev topic: Setting Up ODBC Database Access
|