ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / SQL functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Lists the data sources declared on a local site. There is no need to be connected to the database to perform this operation.
Example
// Afficher les sources de données accessibles dans un champ Liste
ListAdd(LISTE_ListeData, SQLListSource())

// Afficher les bases de données accessibles dans un champ Liste 
ListAdd(LISTE_ListeData, SQLListSource("BASE"))
Syntax

Listing the data sources available for all the databases Hide the details

<Result> = SQLListSource()
<Result>: Character string
List of all available data sources. The different elements are separated by CR characters and they can be directly added into a list (ListAdd).
ODBC List of all the data sources defined in the ODBC administrator of the current computer.

Listing the available databases Hide the details

<Result> = SQLListSource(<"DATABASE">)
<Result>: Character string
List of all the types of databases available on the current computer. The different elements are separated by CR characters and they can be directly added into a list (ListAdd). The possible types of databases are:
ACCESSThe Microsoft Jet 4 provider as well as MDAC are installed on the current computer.
DB2The Native DB2 Connector is installed on the current computer.
HYPER FILEAccess to HFSQL databases.
HIVEThe Native Hive Connector is installed on the current computer.
INFORMIXThe Native INFORMIX Connector is installed on the current computer.
MariaDBThe Native MariaDB Connector is installed on the current computer.
MYSQLThe Native MYSQL Connector is installed on the current computer.
ODBCThe ODBC32 DLL is installed on the current computer.
OLEDBMDAC is installed on the current computer.
ORACLEThe Native ORACLE Connector is installed on the current computer.
POSTGRESQLThe Native POSTGRESQL Connector is installed on the current computer.
PROGRESSThe Native PROGRESS Connector is installed on the current computer.
SQL AZUREThe Native SQL AZURE Connector is installed on the current computer.
SQL SERVERThe Native SQL SERVER Connector is installed on the current computer.
Note The value of variable H.SQLServerMode is taken into account. If the former Native Connector is forced and if it is not on the computer, the Native SQL Server Connector will not be listed. If the new Native Connector is forced and if it is not on the computer, the Native SQL Server Connector will not be listed.
SybaseThe Native SYBASE Connector is installed on the current computer.
<"DATABASE">: Character string
"BASE": Character string used to list the databases available on the current workstation..

Listing the data source available for a specific type Hide the details

<Result> = SQLListSource(<"DATABASE"> , <Type of database>)
<Result>: Character string
List of all data sources available for the specified type. The different elements are separated by CR characters and they can be directly added into a list (ListAdd). The possible results according to the type of database are as follows:
AccessEmpty string.
HYPER FILEEmpty string. We recommend that you use HListAnalysis to get the list of analyses.
ODBCList of ODBC databases defined in the ODBC administrator of current computer.
OLEDBEmpty string.
<"DATABASE">: Character string
"BASE": Character string used to list the data sources available for a specific type.
<Type of database>: Character string
Type of databases searched: "ODBC", ...
Component: wd300sql.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help