LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with DB Tools Insert Data VI

Just beginning to try to use the DB tools in LV11.  The Insert Data VI is giving me errors (-2147217900) just tring to put a cluster of five strings into a table.  I cannot see what I am doing wrong.  Can someone see it.  Screen captures attached.

 

Steve

Download All
0 Kudos
Message 1 of 7
(3,987 Views)

My first thougt is that "Date" is a protected word in Access, but I can't test it now.  Try changing that and see if it works.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 7
(3,982 Views)

I changed to a different element in the cluster and I got the same error.  But what difference would that make anyway.  I am just making a cluster of the string contents not the element names?  Right?

 

Steve

0 Kudos
Message 3 of 7
(3,973 Views)

I would try removing the Table part of CalFileTable (anyway you know that CalFile will be a table). Since its a syntax error it would be interesting to see the content of the strings you are writing to the Insert Data.vi.

 

EDIT: Removing Table from CalFileTable will have no effect.

 

Ben64 

0 Kudos
Message 4 of 7
(3,959 Views)

@ycg44 wrote:

I changed to a different element in the cluster and I got the same error.  But what difference would that make anyway.  I am just making a cluster of the string contents not the element names?  Right?

 

Steve


Smiley Embarassed ...

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 7
(3,939 Views)
Of course it matters if you use a reserved name. The SQL statement uses the column name. This is one issue with the db toolkit. It hides the underlying syntax.
0 Kudos
Message 6 of 7
(3,936 Views)
Where are you creating the table, that is where the error is but I don't see the code. For what it's worth using a reserved word as part of a name that is all one word will not cause a problem. You can't call a table "update" but "data_update" would be fine.

You should consider dropping the DCT for the exact reason Sir Dennis gave... If you are interested there are good alternatives.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 7
(3,905 Views)