If you are asked to interface to an existing database from LabVIEW using the Database Connectivity Toolkit, the first idea you probably have is to create typdef clusters to represent a record. If your database table list is large or uses long field names, it can be tricky to create all of these typdefs manually.
This example uses scripting (my first attempt!) to automatically create a cluster of a specified table name. Each element of the cluster matches the column name and datatype from the table. Save the created cluster as a typedef and then use from your code with the NI DB Tools library.