Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/06/2002, 14:31
rashid
 
Fecha de Ingreso: enero-2002
Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 23 años, 4 meses
Puntos: 11
Pork no actualiza este update?

Hola amigos.
Tengo un update que debe actualizar la Bd pero no actualiza nada, y me responde como que si actulizó, tenia problemas anteriormente en el campo pay (que es true/false) pues lo pasaba como string texto, ahora lo paso como numero sin comillas y me corre el script, pero no me actuliza, este es:
Set rs = GobjConnect2.Execute(sSQL)

If rs.Fields("Total") = 0 THEN
Response.Write("<CENTER>Sorry, but there is not a registered item.<BR>")
Response.Write("If you are not registered, <A HREF=""register.asp"">Click Here</A> to register.")
Response.Write("</CENTER>")
Else
changeSQL = ""
changeSQL = changeSQL & "UPDATE Auctions "
changeSQL = changeSQL & "SET pay = " & SQLVal(pay) & " "
changeSQL = changeSQL & "WHERE ItemID = " & SQLVal(iItemID) & " AND ItemTitle = " & SQLStr(ItemName)
response.write (changeSQL)

GobjConnect2.Execute(changeSQL)
Response.Write("<CENTER>The estate of the item now is paid.<BR>")
Response.Write("<A HREF=""default.asp"">Click Here</A> to continue.<BR></CENTER>")
End If

rs.Close
Set rs = Nothing

Y me responde:
UPDATE Auctions SET pay = NULL WHERE ItemID = 161 AND ItemTitle = 'casa2'
The estate of the item now is paid.
Click Here to continue.

Pero al revisar la Db no aprarece actualizada!
Por Ke?