Can someone possibly help me. I am trying to update an SQL database thru ASP and can't get the syntax right. Not sure if I need to do something with DBEngine or Workspace or something else. The below query works when doing a plain query but does not work when trying to do an update query. The error that is stated is "ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
Here is my code:
set SQLConn = server.CreateObject("ADODB.Connection"
SQLConn.open "dsn=*****;uid=sql_usr_*****;pwd=*****;"
sqlQuery = "Update studentdemo " & _
"set pin = '" & wsPin & "' where " & _
" studnum = '" &PassStudnum & "' "
set SQLRs = server.CreateObject("ADODB.Recordset"
SQLRs.Open sqlQuery, SQLConn
Thanks .. any help would be appreciated.
Operation is not allowed when the object is closed.
Here is my code:
set SQLConn = server.CreateObject("ADODB.Connection"
SQLConn.open "dsn=*****;uid=sql_usr_*****;pwd=*****;"
sqlQuery = "Update studentdemo " & _
"set pin = '" & wsPin & "' where " & _
" studnum = '" &PassStudnum & "' "
set SQLRs = server.CreateObject("ADODB.Recordset"
SQLRs.Open sqlQuery, SQLConn
Thanks .. any help would be appreciated.