03-21-2016 08:48 AM
@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)
03-21-2016 08:49 AM
Hi Yamaeda,
I have run the query directly in the database and the query returns the right data.
regards
Matt
03-21-2016 08:56 AM
@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
03-21-2016 08:57 AM
@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!!
03-21-2016 09:20 AM
Hello Sam,
Here is the full message error.
regards
Matt
03-21-2016 09:25 AM
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.
09-26-2024 05:33 AM
How did you get your Amazon timestream to Connect to LabView Successfully? , Please help
09-26-2024 08:26 PM
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
09-27-2024 08:49 AM
@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. 🙂
09-27-2024 10:06 AM
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. 😉