LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

database connectivity


@Yamaeda wrote:

Since it's the Execute query that generates the error i assume the question is somehow ill formed. Date, e.g. might be reserved and not allowed as column name. Try the query directly in the database before placing it in code.

/Y


Ah! Yes - I seem to remember that 'date' is a function in SQL - try escaping the time and date column names (e.g. with a tick ` or an apostrophe ' - I forget which)


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 11 of 21
(1,869 Views)

Hi Yamaeda,

 

I have run the query directly in the database and the query returns the right data.

 

regards

 

Matt

0 Kudos
Message 12 of 21
(1,867 Views)

@Sam_Sharp wrote:

 


Ah! Yes - I seem to remember that 'date' is a function in SQL - try escaping the time and date column names (e.g. with a tick ` or an apostrophe ' - I forget which)


If accessing Access or MSSQL it's often good to use [] around column names ( [date] ).

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 13 of 21
(1,855 Views)

@Matt14122017 wrote:

Hi Yamaeda,

 

I have run the query directly in the database and the query returns the right data.

 

regards

 

Matt


Then you need to tell us what the full error message is!!


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 14 of 21
(1,849 Views)

Hello Sam,

 

Here is the full message error.

 

Errorode.PNG

 

regards

 

Matt

0 Kudos
Message 15 of 21
(1,839 Views)

Look at the query string in the error... you have your query in the box which ends with "ORDER BY time;" but then you concatenate "Pavilion (Retail)" at the end of it - which isn't a valid query.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 16 of 21
(1,829 Views)

How did you get your Amazon timestream to Connect to LabView Successfully? , Please help 

0 Kudos
Message 17 of 21
(422 Views)

how about capital letters in the column names? Then you have to use " "  as in "Capital" otherwise Capital turns into capital, column does not exist

 

I made my software so it shows the actual string that goes into SQL, then I can copy paste that into SQL admin and run

0 Kudos
Message 18 of 21
(398 Views)

@Steffen01 wrote:

I made my software so it shows the actual string that goes into SQL, then I can copy paste that into SQL admin and run


That's a good way to test things manually before trusting the program. 🙂

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 19 of 21
(381 Views)

Note that the query issue is from an old 2018 thread that GUYFelix has resurrected.  He is only asking about connecting to Amazon.

 

@GUYFelix:  Adding to an old thread is confusing to the people that respond.  You are better off starting a new thread to ask your question.  😉

 

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 20 of 21
(371 Views)