Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: No response from oracle adodb call that updates User Password via an Alter User Command.

Re: No response from oracle adodb call that updates User Password via an Alter User Command.

From: Peter Zaal <pzaal~_at_xs4all.nl>
Date: 2000/06/13
Message-ID: <8i6abi$b65$1@news1.xs4all.nl>#1/1

lbj heeft geschreven in bericht
<394550c2$2$28612$39368dfe_at_news.twtelecom.net>...
>I have coded an asp module that allows a user to change their password.
>It is called by another module that passes the Userid and Passwords. I am
>running into a problem where the code works 4 times consecutively and hangs
>on the subsequent fifth run.
 

> Set cmdTemp = Server.CreateObject("ADODB.Command")
> Set rsPassChange = Server.CreateObject("ADODB.Recordset")
> cmdTemp.CommandText = "ALTER USER " & strUserId & " IDENTIFIED BY " &
>strNewPass & ""
> cmdTemp.CommandType = 1
> Set cmdTemp.ActiveConnection = objConn
> rsPassChange.Open cmdTemp, , 1, 3, 1
> If Err.Number <> 0 Then
> Session("strMessage") = "Your new password was invalid - please try
 a
>different password." & _
> " Contact your account coordinator at M&I Data Services if you
>continue to experience problems."

Why not just do a
  objConn.Execute "ALTER USER " & strUserId & " IDENTIFIED BY " & strNewPass   If Err.Number <> 0 Then etc
Maybe simplicity works better, don't know, give it a try.

---
Peter Zaal
(remove the ~ from my mail address, sorry)
Received on Tue Jun 13 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US