|
This section discusses the tasks you must perform so that any ODBC-enabled application (such as Microsoft Visual Basic) can connect to your Pervasive data. The tasks are as follows:
You must have the following software installed:
For information about how to install these components, refer to Getting Started with Pervasive.SQL.
This tutorial uses the sample database, which is installed with Pervasive.SQL. The following procedure guides you through making a personal copy of the sample database, so that you can make changes without affecting the original installation.
To copy the sample database:
A data source specifies a database you want to access, the ODBC driver you want to use, and other connection-related information. For each database you want to access, you must define a separate data source using the ODBC Administrator.
To define a data source and a database name:
Note: If you are using a server engine on another machine, you must have administrative rights in the server operating system in order to create a new database.
Read this section if you have Btrieve data that does not have .ddf files or that has blank .ddf files.
A data dictionary is a set of .ddf files that describe your Btrieve data in terms of tables, columns, and indexes. (In Btrieve terminology, these are files, fields, and keys.) A Btrieve database does not explicitly contain information that describes the format and meaning of the data in the database; instead, this information is defined in the Btrieve application.
The data dictionary defines the components of a database so that ODBC, Pervasive.SQL 2000, and a variety of other commercial tools and applications can access your Btrieve database. The minimum set of .ddf files required is File.ddf, Field.ddf, and Index.ddf. Your database must have these files so that Visual Basic can connect to it.
The .ddf files must accurately describe your database in order to be useful to Visual Basic. To help with this, Pervasive provides Pervasive.SQL Control Center, a tool that helps define tables, columns, and indexes for your database. For more information, refer to Pervasive.SQL User's Guide.
This procedure simply creates a new project in Visual Basic that you can use in subsequent lessons.
To create the tutorial project in Visual Basic:
If you are using Visual Basic 3 or 4, this task is complete; you can skip to the next lesson. If you are using Visual Basic 5, continue with the next step.



|
Chapter contents
Prev topic: Using Microsoft Visual Basic with Pervasive Data
|