Jump to content

how to read or write 2D array from or to database


Recommended Posts

labsql or labview sql toolkit can only read or write 1D array one time. If i want to write 100 1D arrays to the database, it is too slow and will cost too many CPU time to do this by writing a single 1D array one time. :headbang:

So i wanna an efficient method. Can you help me? :rolleyes:

Link to comment
  • 4 weeks later...

Hi,

As far as I know it is not possbile to write a 2D array to a database Table directly. You are fixed to the 1 record insert.

But there are a few possibilities and tricks

-Switch to the ADO.COMMAND object to insert you data binary! This will decrease the size of your SQL command.

-Dont use new SQL commands for every record, try to use a "prepared ado.command execution"

-You might redesign your database to insert a 2D Array as an IMAGE datatype, but this will only be read/writable by LabVIEW.

Arnoud de Kuijper

T&M Solutions BV - Database Wizard

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.