Solution
The best and easiest way to perform database connection and operations in LabVIEW is by using the
LabVIEW Database and Connectivity Toolkit. This comes with a simple API that allows for the creation of routines that work with the most popular databases. These include:
- Microsoft Access
- SQL Server
- Oracle
The Database and Connectivity Toolkit also provides a set of advanced functions to access low level operations. According to the
LabVIEW 2020 Database Connectivity Toolkit Readme, this toolkit works with any database or data source that has ODBC or OLE DB drivers.
IBM DB2 is ODBC (Open Database Connectivity) compliant. Therefore, the LabVIEW Database and Connectivity Toolkit can be used to access IBM DB2.