LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Column Info from ADODB._Connection

Hello All,

 

JScherer_0-1664820331495.png

 

I want to create a VI that will read and access .mdb file and convert it into a SQLite database. Currently, I can create tables and move information between. However, I want to make sure column constraints also transfer (primarily, the primary key).

 

The Primary Key of each table is most important, but if I can also capture "Not Null," "Auto Incrementing, ect, that would be preferred." Alternately, if I can get the Table creation command, that would work as well.    

 

 

0 Kudos
Message 1 of 4
(1,633 Views)

I believe the Restrictions input is an array of strings.  In your case, the array should contain 4 strings with the table name in the 4th position.

https://learn.microsoft.com/en-us/dotnet/api/system.data.oledb.oledbconnection.getoledbschematable?v...

 

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 2 of 4
(1,588 Views)

@Michael_Munroe wrote:

I believe the Restrictions input is an array of strings.  In your case, the array should contain 4 strings with the table name in the 4th position.

https://learn.microsoft.com/en-us/dotnet/api/system.data.oledb.oledbconnection.getoledbschematable?v...

 


I tried the following without success. Any suggestions?

JScherer_0-1664894415877.png

 

0 Kudos
Message 3 of 4
(1,560 Views)

Only the middle one is a single variant of an array of 4 strings.  By trying 3 approaches, you are likely to generate 2 errors.  Add wires to the error outputs of the invoke nodes and probe each one.  Are all 3 outputting an error?

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 4 of 4
(1,537 Views)