11-07-2014 02:25 PM
I am trying to create a new MS Access database to log some results to during a labview program using the datab ase connectivity toolkit. The examples show how to link and create a new table in an existing database file, but I want to create a new database and tehn insert a new table in it for my logged results. Any ideas??
Solved! Go to Solution.
11-07-2014 02:29 PM
11-07-2014 02:31 PM
All I need to do is log to an mdb table for subsequent SQL operations in my labview program.
11-07-2014 02:37 PM
@id wrote:
All I need to do is log to an mdb table for subsequent SQL operations in my labview program.
And this answer does not answer the question why you need to do this in LabVIEW when creating a database is a one-time only event.
Usually best to do manually since you may want to set permissions and passwords, etc.
Also, you will need to create tables in the Access database; otherwise, it is pretty useless.
11-07-2014 02:38 PM
It isnt a one time event for me. I have to sanitize/wipe clean the temp folder that it is in after each test run.
11-07-2014 02:47 PM
Do you have Access installed where you can create a blank MDB file? If so, you could create one and store it as a template in your program folder. Copy and paste it when you run your routine and use the Create Table VI in the toolkit to create tables to write to. It is possible to create tables during an INSERT but you can't control properties of the fields. The OP in this thread is doing that very thing. (http://forums.ni.com/t5/LabVIEW/Database-connectivity-toolkit/m-p/3046359#M868188)
11-08-2014 12:47 AM