How to Connect LabVIEW to a Database

Updated Oct 8, 2021

Reported In


  • LabVIEW
  • LabVIEW Database Connectivity Toolkit

Issue Details

I need to connect my LabVIEW application to a database to store and query measurement data and configuration information. What is the simplest way to do that using LabVIEW?


The best and easiest way to connect perform database connection and operations in LabVIEW is by using the LabVIEW Database and Connectivity Toolkit. Since it comes with an simple API that allows create routines that work with the most popular databases, such as Microsoft Access, SQL Server, and Oracle, as well as provide a set of advanced functions to give you access to low level operations.

Below shows a sample code that exemplifies the usage of this toolkit. This is a native example that comes with the toolkit, which can be found through Help>> Find Examples.