ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

database access problem

Hi,
    I have a problem with access operation.The error is syntax error.First I transfer some different parameters to string then I contact them.
The result expression(red point in diagram) to DB tools Execute query.vi's sql query port is
UPDATE AnalogInputVoltage SET Max=8.00,Min=7.00,Units=0,Terminal=0 where Channel='Dev1/ai5';
And ,I have checked access,There is no prob.
The syntax error always show.
********************************
*The best Chinese farmer*
********************************
0 Kudos
Message 1 of 3
(2,643 Views)


@paulbin wrote:
Hi,
    I have a problem with access operation.The error is syntax error.First I transfer some different parameters to string then I contact them.
The result expression(red point in diagram) to DB tools Execute query.vi's sql query port is
UPDATE AnalogInputVoltage SET Max=8.00,Min=7.00,Units=0,Terminal=0 where Channel='Dev1/ai5';
And ,I have checked access,There is no prob.
The syntax error always show.



Parenthesis maybe?
UPDATE AnalogInputVoltage SET (Max=8.00,Min=7.00,Units=0,Terminal=0) where Channel='Dev1/ai5'
?
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 3
(2,638 Views)
I haven't used SQL expressions in Labview, but in many other database
implementations Max and Min are reserved words...

HTH,
Mike

0 Kudos
Message 3 of 3
(2,603 Views)