Re: Closing ADODB sub reference outs in VIs? (LV 8.5.1)
- From: "Wiebe@CARYA" <wiNOebe.walsSPtra@xxxxxxxxxx>
- Date: Thu, 29 May 2008 11:44:25 +0200
"intp56" <x@xxxxxxxx> wrote in message
news:1211895605937-713397@xxxxxxxxxxxxxxxxxx
I download LabSQL, it looks pretty close to what I want.
I'd suggest to use it, and to send them your additional code in return if
you're alowed to do that... Or suggest what you are missing to the project,
so they can add it in later versions.
I'm looking for a VI that queries a stored procedure to determine what theparameters are, then creates a LabVIEW cluster with the correct datatypes.
The idea is to call that first to create the Parameters object, then use it
later, particularly for DML operations. (Say insert rows from a LV table.)
I've tried using ADO recordsets to insert large datasets, and found it's
performance to be lacking or unacceptable. I can insert several 1000 records
per second with successive calls to a stored procedure where I specify ahead
of time no result set.
Not sure how ADO does this. I vaguely recall something about it. I think the
values are send item by item, and I think there was a faster way to send the
data by using a variant that directly accepts an array... It's been a while
since I've messed around with that, and I might not have succeeded to get it
working. Googling for "ADO large data sets" or something might give some
clues.
If I really have lots of rows to insert, then I've found it better toprepare a file, move it to a place where the database can see it, and BULK
INSERT it asynchronously and report the results back later.
Can't imagine that this is the best way to do it, but it's a good
workaround.
BTW, I liked the tip that any reference WIRE needs to be closed, thatgives me a nice rule to know what I need to closed.
But even if there is no wire comming out of a reference property, you still
need to close it. So: every "green" read property should be closed.
Regards,
Wiebe.
.
- References:
- Closing ADODB sub reference outs in VIs? (LV 8.5.1)
- From: intp56
- Re: Closing ADODB sub reference outs in VIs? (LV 8.5.1)
- From: intp56
- Closing ADODB sub reference outs in VIs? (LV 8.5.1)
- Prev by Date: how can i print out the waveform chart?
- Next by Date: Re: Labview fpga
- Previous by thread: Re: Closing ADODB sub reference outs in VIs? (LV 8.5.1)
- Next by thread: Re: Closing ADODB sub reference outs in VIs? (LV 8.5.1)
- Index(es):
Relevant Pages
|