![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have some issues with my allowing the user to change their own passwords from the win-client app I'm stuck with. I've encapsulated the sp_password call in a stored procedure of my own for some additional rules and checks. Yet at the end of the day, even if everything executes fine I don't get a recordset back to extract the result from. My hunch is that it is connected to the "Password correctly set." that is raised. I'm on ASE12.51 using the Sybase OLEDB and ado on the winclient app. Hints, tips or solutions? // Anders |
#3
| |||
| |||
|
|
Have our wrapper code check the results of the change by SELECT -1 or SELECT 1 depending on success, then you should get something back from the OLEDB provider that you can use. |
#4
| |||
| |||
|
|
I'm already doing that. My hunch is that MS's ADO are the cause of my problems. Basically in my trouble shooting effort I stripped down the SP to have the call to sp_password and then evaluate the return value and @@error and depending on the outcome end the procedure with a SELECT <some return value>. My wrapper checks for the first value in the first column in the recordset, but I just get : -2146825023 (0x800A0CC1) Remote ADO Error: Could not find the object in the collection corresponding to the requested name or ordinal reference. I've tried running my wrapper procedure via ADO explorer just to see how the return recordset looks like there, and there I don't get a recordset back at all. It just gives me a Success statement, but no recordset. Running it the statement in isql gives a correct result, though. My hunch is that the "Password correctly set." statement that sp_password raises puts a stick in my wheel. // Anders "Jim Douglas" <james.douglas (AT) genesis-software (DOT) com> wrote Have our wrapper code check the results of the change by SELECT -1 or SELECT 1 depending on success, then you should get something back from the OLEDB provider that you can use. |
#5
| |||
| |||
|
|
Maybe the deal is that the SP is using "RETURN" vs "SELECT". I have seen that before, change the SP to explicity use as the final good/bad select "SELECT 1" or bad "SELECT -1" |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |