Am using CFMX on both my local machine and the production server. Both are on W2K-IIS
Have successfully run this code (pretty close to) 100s of times as I tested the site out. But when I loaded the site on the production server, I got hit with the error below, suspect this might have something to do with the settings on my production server, look forward to your assistance!
[MERANT][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
The Error Occurred in C:\ line 57
55 :AND
56 :StaffList.Staff_ACode='#form.Staff_ACode#'
57 : </CFQUERY>
58 : <CFLOCK SCOPE="APPLICATION" TYPE="READONLY" TIMEOUT="5">
59 : <CFSET variables.LocalEntryPoint=application.EntryPoint>
------------------------------------------------------------
The CF-code around that area is:
<CFQUERY NAME="UpdLogin" DATASOURCE="#request.SiteDSN#">
UPDATE StaffList
SET StaffList.Staff_LastLogin = #CreateODBCDateTime(Now())#
WHERE StaffList.Staff_UserName='#form.Staff_UserName#'
AND StaffList.Staff_ACode='#form.Staff_ACode#'
</CFQUERY>
<CFLOCK SCOPE="APPLICATION" TYPE="READONLY" TIMEOUT="5">
<CFSET variables.LocalEntryPoint=application.EntryPoint>
</CFLOCK>
Have successfully run this code (pretty close to) 100s of times as I tested the site out. But when I loaded the site on the production server, I got hit with the error below, suspect this might have something to do with the settings on my production server, look forward to your assistance!
[MERANT][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
The Error Occurred in C:\ line 57
55 :AND
56 :StaffList.Staff_ACode='#form.Staff_ACode#'
57 : </CFQUERY>
58 : <CFLOCK SCOPE="APPLICATION" TYPE="READONLY" TIMEOUT="5">
59 : <CFSET variables.LocalEntryPoint=application.EntryPoint>
------------------------------------------------------------
The CF-code around that area is:
<CFQUERY NAME="UpdLogin" DATASOURCE="#request.SiteDSN#">
UPDATE StaffList
SET StaffList.Staff_LastLogin = #CreateODBCDateTime(Now())#
WHERE StaffList.Staff_UserName='#form.Staff_UserName#'
AND StaffList.Staff_ACode='#form.Staff_ACode#'
</CFQUERY>
<CFLOCK SCOPE="APPLICATION" TYPE="READONLY" TIMEOUT="5">
<CFSET variables.LocalEntryPoint=application.EntryPoint>
</CFLOCK>