Dear reader,
i am new to asp. currently i have a oracle stored procedure (chkpassword) and i need to call that procedure to verify the login. I have the below code but keep getting an error.
Dim rs, cn, result
Set cn = Server.CreateObject("ADODB.Connection"
cn.open "DRIVER={Microsoft ODBC for Oracle};SERVER=admd;UID=???;PWD=???"
Set rs = Server.CreateObject("ADODB.Command"
Set rs.ActiveConnection = cn
rs.CommandText = "CHKPASSWORD"
rs.CommandType = 4
rs.parameters.append rs.createparameter("V_LOGINID", 200, 1, 10, UCase(stdnum))
rs.parameters.append rs.createparameter("V_PASSWORD", 200, 1, 6, stdpin)
rs.parameters.append rs.createparameter("V_returnvalue", 11, 2, 30) 'return boolean
rs.Execute()
result = rs("V_returnvalue"
.Value
If result Then
....
else
....
End If
The error is as follows:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC driver for Oracle]Syntax error or access violation
The error is at this line: rs.Execute()
Any idea what is causing this error?
could i have missed out any syntax error? i looked through the code again and again, cannot see anything wrong...
i searched msdn, couldn't find anything on this error...
Thanks.
i am new to asp. currently i have a oracle stored procedure (chkpassword) and i need to call that procedure to verify the login. I have the below code but keep getting an error.
Dim rs, cn, result
Set cn = Server.CreateObject("ADODB.Connection"
cn.open "DRIVER={Microsoft ODBC for Oracle};SERVER=admd;UID=???;PWD=???"
Set rs = Server.CreateObject("ADODB.Command"
Set rs.ActiveConnection = cn
rs.CommandText = "CHKPASSWORD"
rs.CommandType = 4
rs.parameters.append rs.createparameter("V_LOGINID", 200, 1, 10, UCase(stdnum))
rs.parameters.append rs.createparameter("V_PASSWORD", 200, 1, 6, stdpin)
rs.parameters.append rs.createparameter("V_returnvalue", 11, 2, 30) 'return boolean
rs.Execute()
result = rs("V_returnvalue"
If result Then
....
else
....
End If
The error is as follows:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC driver for Oracle]Syntax error or access violation
The error is at this line: rs.Execute()
Any idea what is causing this error?
could i have missed out any syntax error? i looked through the code again and again, cannot see anything wrong...
i searched msdn, couldn't find anything on this error...
Thanks.