‎05-14-2007 07:06 AM
‎05-14-2007 07:23 AM
‎05-14-2007 07:34 AM
‎05-14-2007 09:17 AM
‎05-14-2007 09:25 AM
‎05-14-2007 01:24 PM
@Chris Walter wrote:
Well if anyone ever reads this again...
Access will only recognise Date and Time fields when they are explicitly defined with ## marks around them...
So what worked for me...
UPDATE IndexStation
SET Signal_Size = 200
WHERE StartDate = #12/05/2007#
And the same for Time...
WHERE StartDate = #12/05/2007# AND #12:34:43#
Argh! half the day wasted on that when NI's blurb says they should be surrounded with {} marks....
Chris.
Well Access is not really a database. It is just a glorified spreadsheet application, sorry. And the fact that Acess has its own ideas of how SQL should work is really not NIs fault.
Rolf Kalbermatter
‎05-15-2007 02:20 AM
‎05-15-2007 03:10 AM
@Chris Walter wrote:
I completely agree about the Microsoft issue.
But it seems no SQL based manual states that { } will provide a Date/Time constant.
Is this an NI only implementation? Because I can't seem to get it to function correctly within LabView or in any SQL query.
Chris.
There is nothing about the database toolkit in terms of SQL syntax that would be NI specific. The database Toolkit simply interfaces to MS ADO/DAO and the actual SQL syntax is usually implemented in the database driver or database itself although I wouldn't be surprised if ADO/DAO does at times munch a bit with that too.
The Database Toolkit definitely does not. So this might be a documentation error indeed. My understanding of SQL syntax is in fact rather limited so not sure which databases might use what delimiters to format date/time values. I know that SQL Server is rather tricky thanks to MS catering for the local date/time format in all their tools and the so called universal date/time format has borked on me on several occasions.
Rolf Kalbermatter
‎05-15-2007 03:28 AM
‎04-04-2012 11:44 PM
Well, I have a similar problem.... the UPDATE query seems to be not working for me at all. I'm using the ADO toolkit to perform the SQL queries. the error is...
"Exception occured in Microsoft JET Database Engine: No value given for one or more required parameters. in ADO Connection Execute.vi->SQL Execute.vi->SQL.vi"
However I can perform SELECT quesries to the same database without problem. Does any one out there could help?
The query is simple
UPDATE IshaKriya11Apr12 SET Status = Check WHERE Num = '100'
This is what I typed in and tried with few different combinations:(
Nitty