PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV 27 feature!
  • In this lesson you will learn the following concepts
  • Overview
  • HFSQL
  • Different modes for accessing databases
  • Native Connector (Native Access)
  • Direct ODBC access
  • OLE DB access
  • ODBC access via OLE DB
  • Project with analysis
Lesson 3.1. WINDEV and the databases
In this lesson you will learn the following concepts
  • Vocabulary used.
  • Different modes for accessing databases.
  • The example project of this part.
Lesson duration

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 you create a project that uses data, you must create an "analysis" previously.
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 HFSQL database maintenance tools are provided 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, a database system provided with WINDEV. The HFSQL database is available in Classic or 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 works in Windows and Linux, on mobile devices (iOS, Android, Windows CE, Windows 10), on networks of any size and type, and automatically manages hundreds of concurrent accesses.
HFSQL can be freely distributed with your WINDEV applications.
HFSQL proposes all database features, especially:
In the different parts of this tutorial, we will use an HFSQL Classic database and then, an HFSQL Client/Server database.
Different modes for accessing 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)
  • 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 uses 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 verified following these steps:
  • For Windows 32-bit systems: from the Windows Start menu, select "Settings .. Control Panel .. Administrative Tools .. Data Sources".
  • For Windows 64-bit systems: double-click the following file: C:\Windows\SysWOW64\odcbad32.exe. This opens a "Data Source Administrator" dialog box that allows you to create the required 32-bit ODBC data source on the 64-bit system.
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" and least efficient method in terms of performance. It should not be used on small databases.
The WLanguage SQL* and HRead* functions can be used with this type of access.
Project with analysis
We will create and associate a project with an HFSQL database.
This will allow you to discover the main elements for creating an application:
  • Creating a WINDEV project.
  • Describing the data files used by the application.
Later on, we will focus on the development of the elements (windows, reports, etc.) of an application with data. This application will be developed from scratch, from the interface to the final distribution. You will see the main points for developing an application.
In this part, we will create a database to manage orders.
The same type of database will be used in part 4 of this tutorial to develop a full application. We will use HFSQL Classic, a free database provided with WINDEV. The HFSQL Client/Server database will be presented later in this tutorial.
Previous LessonTable of contentsNext Lesson
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment