tomei
05-22-2003, 06:37 AM
Hi,
I'm current using MySQL and ASP.
But there seems to be a problem when i try to update a particular record. I get the following error message.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
Query-based update failed because the row to update could not be found.
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM MainPageContents " & _
"WHERE BelongsToShop=" & Session("ShopID") & _
" AND ID=" & which
rs.Open sql, conn, adOpenKeyset, adLockOptimistic
rs.update
rs("some_fld") = "something"
rs.update
I tried setting cursor locations to aduseclient and aduseserver but to no avail. There's also nothing wrong with the query. Does anyone know if there's any kind of issue on updating MySQL using ASP? and is there any solution for this problem?
Thanks
I'm current using MySQL and ASP.
But there seems to be a problem when i try to update a particular record. I get the following error message.
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
Query-based update failed because the row to update could not be found.
Set rs = Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM MainPageContents " & _
"WHERE BelongsToShop=" & Session("ShopID") & _
" AND ID=" & which
rs.Open sql, conn, adOpenKeyset, adLockOptimistic
rs.update
rs("some_fld") = "something"
rs.update
I tried setting cursor locations to aduseclient and aduseserver but to no avail. There's also nothing wrong with the query. Does anyone know if there's any kind of issue on updating MySQL using ASP? and is there any solution for this problem?
Thanks