PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV 24 feature!
  • This lesson will teach you the following concepts
  • Overview
  • HFSQL
  • The different modes for accessing the databases
  • Native Connector (Native Access)
  • Direct ODBC access
  • OLE DB access
  • ODBC access via OLE DB
Lesson 3.2. WINDEV and the databases
This lesson will teach you the following concepts
  • Vocabulary used.
  • The different modes for accessing the databases.

Estimated time: 5 mn
Previous LessonTable of contentsNext Lesson
Overview
You may have to handle data when creating an application. To store the data, you must create a "database".
In WINDEV, when creating a project that is using data, an "analysis" must be created beforehand.
An analysis contains the description of the data files (or tables) containing the application data.
When running the application, these descriptions will be used to create the database and/or the data files. The information will be stored in this database or in these data files.

Note

Several tools for performing maintenance operations on the HFSQL databases are supplied with WINDEV. They can be accessed from the HFSQL Control Center.
WINDEV can handle most of the database formats (nearly all of them). The most common formats are:
  • HFSQL, the database system supplied with WINDEV. The HFSQL database is available in Classic mode or in Client/Server mode.
  • Oracle, SQL Server, MySQL, xBase, SQL Azure, ...
  • AS/400, Access, Sybase, Informix, ...
  • Any database accessible in SQL language in Windows.
  • Text (ASCII files).
Several methods can be used to access data:
  • Native Connector (also called Native Access),
  • OLE DB access,
  • Direct ODBC access,
  • ODBC access via OLE DB.
HFSQL
HFSQL is a database that is very powerful, very fast and very reliable.
HFSQL operates in Windows and Linux, on mobile devices (iOS, Android, Windows CE, Windows 10), on networks of any size and type, and it automatically manages hundreds of concurrent accesses.
HFSQL can be freely distributed with your WINDEV applications.
HFSQL proposes all database features, especially:
In the different sections of this tutorial, we will be using a HFSQL Classic database then a HFSQL Client/Server database.
The different modes for accessing the databases

Native Connector (Native Access)

A Native Connector is using a database format directly and exclusively. This optimized type of access is developed specifically for each database format.
In WINDEV, a Native Connector is available for the following databases:
  • HFSQL Classic or Client/Server (standard)
  • xBase (standard)
  • Access (standard)
  • XML (standard)
  • SQLite (standard)
  • Oracle (optional)
  • AS/400 (optional)
  • SQL Server (optional)
  • Sybase (optional)
  • Informix (optional)
  • DB2 (optional)
  • Progress (optional)
  • MySQL (optional and free)
  • PostgreSQL (optional and free)
  • MariaDB (optional and free)
  • SQL Azure (optional and free)
Other Native Connectors will be available soon, contact our sales department for more details!
The WLanguage SQL* and HRead* functions can be used with this type of access. The code is portable and independent of the database.

Direct ODBC access

An access via ODBC is using a multi-database access standard. The ODBC layer must be installed on your computer. In most cases, this layer is already installed in the recent Windows versions. This can be checked in the control panel of Windows by selecting "ODBC data source" (or "ODBC administrator" according to the Windows version used).
Caution: some databases may not be accessible via this method. If you want to use this type of access, check whether an ODBC driver exists and install this driver if necessary.
Only the WLanguage SQL* functions can be used with this type of access.

OLE DB access

An access via OLE DB uses a multi-database access standard. This type of access is based on MDAC (Microsoft Data Access Component).

Important

If you are using an OLE DB access, MDAC must necessarily be installed on the user computers (version 2.6 or later).
Some databases may not be accessible via this method. If you want to use this type of access, check whether an OLE DB driver exists.
The WLanguage SQL* and HRead* functions can be used with this type of access.

ODBC access via OLE DB

In summary, it is a "mix" of OLE DB and ODBC. This is the "heaviest" method and the least efficient one in term of performance. It should not be used on small databases.
The WLanguage SQL* and HRead* functions can be used with this type of access.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 24
Comments
Click [Add] to post a comment