I'm not sure whether this post should be in the ASP section or Oracle. I guess my question is with ASP, but it's Oracle that I'm connecting to.
I am working on a html (asp) doc that receives username and password info from a form, then connects to oracle and issues an alter command to update the password.
I got the connection to oracle to work, but My alter command doesn't work. No errors are reported either. I've attached my code below.
On Error Resume Next
objSQL = Server.CreateObject("ADODB.Command"
set objSQL.ActiveConnection = objConn
StrCommand = "alter user " & Userid & " identified by """ & NewPassword & """;"
objSQL.execute StrCommand
If objSQL.errors.count > 0 then
Response.write( objSQL.errors.count & "Errors Occured while setting password" & "<P>"
Response.write objSQL.errors.count
For counter= 0 to objSQL.errors.count
Response.write("Error #" & objSQL.errors(counter).number & "<P>"
Response.write("Error desc. -> " & objSQL.errors(counter).description & "<P>"
Next
else
response.write("nO ERRORS"
end if
Any help is greatly appreciated.
I am working on a html (asp) doc that receives username and password info from a form, then connects to oracle and issues an alter command to update the password.
I got the connection to oracle to work, but My alter command doesn't work. No errors are reported either. I've attached my code below.
On Error Resume Next
objSQL = Server.CreateObject("ADODB.Command"
set objSQL.ActiveConnection = objConn
StrCommand = "alter user " & Userid & " identified by """ & NewPassword & """;"
objSQL.execute StrCommand
If objSQL.errors.count > 0 then
Response.write( objSQL.errors.count & "Errors Occured while setting password" & "<P>"
Response.write objSQL.errors.count
For counter= 0 to objSQL.errors.count
Response.write("Error #" & objSQL.errors(counter).number & "<P>"
Response.write("Error desc. -> " & objSQL.errors(counter).description & "<P>"
Next
else
response.write("nO ERRORS"
end if
Any help is greatly appreciated.