Ask a Question related to Coldfusion Database Access, Design and Development.
-
Tomdogggg #1
Error when using createODBCDateTime and Now()
I'll start you guys off with my code here:
<cfquery datasource="tempData">
UPDATE login
SET lastLoginIP='#REMOTE_ADDR#'
lastLoginDate=#Now()#
WHERE username='#Form.username#'
AND password='#Form.password#'
</cfquery>
For some reason, this query is coming up with errors; the cause of the errors
is in the #Now()# clause.
It feels like I've tried every combination possible between
createNewODBCDateTime(Now()) and DateFormat(Now()) and all the other functions.
Can you guys help me out? I'm working with an Access Database and I'm going
bonkers here.
Tomdogggg Guest
-
createodbcdatetime() function.
Hi everyone, if I use the following; <cfset mydatetime = #createodbcdatetime(now())#> and try to insert the "mydatetime" value into a MS-SQL... -
Error 403 Failed to read heders Error for long-runningCFMAIL and CFINDEX command
I have two different pages with long-running scripts on which I am recieving the following error: Error - 403 Failed to read headers to server:... -
Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems'
I am having problems getting this webcontrol working properly. Everything else works fine except having items. So here is the low-down on the... -
Unexpected error. A trappable error (C0000005) occurred in an external object.
Hi Elvin, After doing some reseaarch on this problem, I found there is a lot of issues which may cause the problem, for example, incorrect access... -
An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888)
Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources... -
paross1 #2
Re: Error when using createODBCDateTime and Now()
You are missing a comma between your two SET parameters.
<cfquery datasource="tempData">
UPDATE login
SET lastLoginIP='#REMOTE_ADDR#',
lastLoginDate=#Now()#
WHERE username='#Form.username#'
AND password='#Form.password#'
</cfquery>
Phil
paross1 Guest
-
Tomdogggg #3
Re: Error when using createODBCDateTime and Now()
Thanks a bunch for that answer, I guess my head was spinning so fast that I
overlooked that simple little thing(probably why nobody else was having that
problem). For anybody else in the future who IS looking this up, please also
remember to check your column names that you are updating to make sure they are
EXACTLY the same(as this was an underlying problem for my dumba$$).
You rock Phil,
Tom
Tomdogggg Guest



Reply With Quote

