06-29-2007 06:54 PM
06-29-2007 08:46 PM
07-01-2007 02:43 PM
07-02-2007 04:13 AM - edited 07-02-2007 04:13 AM
Hmm, this is a bit of a bold statement. The thickest part of accessing databases with ADO is in the ADO layer itself. What the DCT adds to this is in comparison not so thick. It could be that the DCT does some things a bit more complicated than would be strictly necessary to support various use cases, but in general the performance of a database query is rather in the method used than in the interface. For instance using querysets for the OP problem will most likely be the most efficient way to get the data, and the DCT does use them by default if I'm not mistaken.
@mikeporter wrote:
By contrast, the alternative drivers are a very "thin" layer overlaying the native ADO support from Windows. Hence if you have a problem you can get help from anyone that knows ADO, SQL or the specific database that you are using. Let's face it, there are a lot more people who know databases, SQL and ADO than there are people who know the database connectivity toolkit.
Finally because these alternative drivers are more direct, they are also much more efficient.
Message Edited by rolfk on 07-02-2007 11:14 AM
07-02-2007 06:55 AM
07-02-2007 08:06 AM - edited 07-02-2007 08:06 AM
Message Edited by rolfk on 07-02-2007 03:13 PM
07-05-2007 03:43 PM
07-05-2007 04:37 PM
@Pablop wrote:
Hello Mike,
These VI's look great, thanks, I've already started to use them (and I never did get a response on exactly how to use the DCT).
Just so I'm understanding this correctly: The zipped up Databse ICS files seem to be examples of how you would access a database without either the DCT or your subsequently poseted VI's? Was that the purpose of posting it, to show how it would be done otherwise?
Not really. You want to use well-structured drivers for deliverable code. The purpose of those VIs is simply to expose the "bare bones" of the process to illustrate that the process is basically pretty simple. I have talked to a lot of people who feel that there is some profound mystery involved in connecting to databases. I wanted to show that there isn't.
With regard to the set of VI's you ove posted, I may never need all of them, but thanks! I'm using the Open, Close and Create and Read record set rather straighforwardly to load data from my sample database. Which VI would you primarily use to insert, update and delete data? The Execute SQL VI?
Yes, the Execute VI is for any sort of action that doesn't return data. In addition to inserting, updating and deleting data you can also use it to send SQL DDL (data definition language) statements that modify the structure of the database. This category would include such things as creating tables, adding columns, altering user permissions, etc.
07-06-2007 02:30 AM
07-07-2007 06:01 PM