LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open .mdb database

How can I open an .mdb database in Labview?

0 Kudos
Message 1 of 13
(4,917 Views)

Googling or looking at LabVIEW examples (Help>>Find Examples)gives lot of results for this and it works straight away.

 

Search for mdb in the Find Examples and you can see the Create DatabaseTable.vi which creates the .mdb database.  You can play for opening the existing one too.  This example actually opens the db from C:\Program Files (x86)\National Instruments\LabVIEW 2015\examples\database\LabVIEW.mdb

 

Other google results for your help...

 

http://www.ni.com/example/26694/en/

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PADkSAO&l=en-IE

https://forums.ni.com/t5/LabVIEW/How-to-read-and-write-mdb-file-in-labview-without-having-MS/td-p/10...

 

Thanks,

-Ajay

--
Ajay MV


Message 2 of 13
(4,901 Views)

I have tryed to do following your examples but I can´t choose the option "Microsoft Jet 4.0" I have only these options 

provider.PNG

0 Kudos
Message 3 of 13
(4,892 Views)

I guess you need not worry about it.  I also get the error, Microsoft.Jet.OLEDB.4.0 not found.  But still the example works and generates the table in .mdb file as below.

 

Ajayvignesh_MV_1-1574417486595.png

 

 

Ajayvignesh_MV_0-1574417422641.png

--
Ajay MV


0 Kudos
Message 4 of 13
(4,886 Views)

The problem is that I have one access 2000 database and I can´t open the databse in Labview to see all the tables that the database has. 

0 Kudos
Message 5 of 13
(4,882 Views)

I found and error when I try to run the VI. I show you my program

0 Kudos
Message 6 of 13
(4,879 Views)

It's been a while since I tried this with older Access databases but try using the Database Connectivity Toolkit with the connection string from ConnectionStrings.comProvider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mydatabase.mdb;User Id=admin;Password=;

 

Make your data source the path to your MDB file. If you have login credentials, put them in the User Id and Password areas.

0 Kudos
Message 7 of 13
(4,821 Views)

I just wanted to see all the tables that appear in the database. But first I have to convert and my database which is .mdb to accdb. But I don´t know how to do this. Can you help me please?

0 Kudos
Message 8 of 13
(4,750 Views)

I have managed to do it! Now how can I do it so that every time Irun it I don´t have to enter the DB properties? I mean I don´t wan´t to be all the time choosing " Microsft Jet 4.0 OLE DB Provider"

 

 

0 Kudos
Message 9 of 13
(4,740 Views)

Hola!

Estoy tratando de conectarme a una base de datos, pero cada vez que ejecuto el programa tengo que especificar entre las propiedades DB la opción de " Microsoft Jet 4.0 OLE DB Provider". Lo que quiero es que una vez que selecciona esa opción de DB luego no tenga que estar metiendola constantemente.

0 Kudos
Message 10 of 13
(4,757 Views)