Unfamilair with ADO DB connections
Options
03-30-2008 09:59 PM
Hi I am not familiar with ADO DB connection.
I am using Labview 7.1, MySQL and LabSQL.
To get LabSQL and MySQL, you can find http://jeffreytravis.com/lost/labsql.html and http://dev.mysql.com/downloads/mysql/4.1.html.
In those LabsQL vi functions, there are no vi descriptions for connections.
I tried finding similar descriptions to compare from ADO websites. I am getting confused.
Here are LabSQL vi functions:-
1) ADO Connection Create.vi - means Create an connection to database?
2) ADO Connection Open.vi - means Open the connection to database?
3) ADO Connection Close.vi - means Close the connection to database?
4) ADO Connection Destroy.vi - means Destroy the connection to database?
Are ADO Connection Close and Destroy same?
And I am not familiar with the sequence of those vi.
For eg. I read the procedure from http://www.w3schools.com/ado/ado_intro.asp
Accessing a Database from an ASP Page
The common way to access a database from inside an ASP page is to:
Create an ADO connection to a database
Open the database connection
Create an ADO recordset
Open the recordset
Extract the data you need from the recordset
Close the recordset
Close the connection
So when I cannot find LabSQL functions for eg Open recordset and close recordset, so what is the equivalent ADO function to "destroy the connection"?
And here are my attached, and I there's something i do not understand,
And my question for my attached, typing my show processlist in command prompt,
When run attached for the first time, "show processlist" command show no host to "test" db.
when click to open database, "show processlist" command shows my host to "test" db.
When click to close database, "show processlist" command still shows my host to "test" db.
Why is this so? By right, there should be no sign of "test" db. Do i have to use ADO Connection Destroy vi to destroy connection?
Please advise
Thanks
Attachment testdb_connection.vi 68 KB
Message 1 of 10 (3,119 Views)
Reply
0 Kudos
Member Van_L
Member
Van_L
Posts: 121
Re: Unfamilair with ADO DB connections
Options
03-31-2008 03:11 PM
Hi Astroboy,
I am not too familiar with LabSQL either, but after doing some search on the discussion forum I found som pretty useful threads which can be really helpful to you:
LabSQL Can't make it work
labsql - LabVIEW
labsql step-by-step
Create new table using LABSQL
If you type in LabSQL at NI Discussion Forums you can find more.
I'll look into this also
Van L
NI Applications Engineer