DB Tools Create Table VI
- Updated2023-02-21
- 3 minute(s) read
DB Tools Create Table VI
Owning Palette: Database VIs and Function
Requires: Database Connectivity Toolkit
Creates a new table in the database identified by connection reference. The table and column information inputs describe the name of the table and the properties of each column in the table, respectively.

![]() |
primary key specifies the column that is going to be the primary key for the table. The default is –1, which means the table does not have a primary key. | ||||||||||||||||||||
![]() |
connection reference specifies a reference to an ADO Connection object. | ||||||||||||||||||||
![]() |
table is the name of the table in the database to create. | ||||||||||||||||||||
![]() |
column information specifies an array of clusters that describe each column to be created.
| ||||||||||||||||||||
![]() |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||||||||||
![]() |
use file? specifies whether to use a user-supplied file to determine native database types. The default is FALSE. | ||||||||||||||||||||
![]() |
connection reference out returns a reference to an ADO Connection object. | ||||||||||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following VIs for examples of using the DB Tools Create Table VI:
- Create DatabaseTable VI: labview\examples\database
- Sixtypes Insert VI: labview\examples\database








