Receiving COM return parameter value in ASP.Net not working
From: markeboy (top.gun_at_airforce.nz)
Date: 04/29/04
- Next message: markeboy: "RE: Receiving COM return parameter value in ASP.Net not working"
- Previous message: William \(Bill\) Vaughn: "Re: What is the best Reportinf mechanism in .Net ?"
- Next in thread: markeboy: "RE: Receiving COM return parameter value in ASP.Net not working"
- Reply: markeboy: "RE: Receiving COM return parameter value in ASP.Net not working"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 15:26:04 -0700
We are upgrading ASP application to ASP.Net
Previously, we were able to populate an output paramenter for a Sql server 2000 stored procedure, execute the command, and the query the parameter object for its new value (it was being updated by the stored procedure).
I can confirm, through tracing that the return parameter is being updated by SQL, however, the updated value is NOT bubbling back up to the Parameter object. Yes, the stored procedure is declaring the parameter as "OUTPUT"
My code for creating and populating the parameter is:
prmLastUpdated = cmm.CreateParameter("LastUpdated",adDBDate, adParamInputOutput);
cmm.Parameters.Append(prmLastUpdated);
prmLastUpdated.Value = dtLastUpdated;
and the code for looking back at it after the Execute() has been issued is:
dtLastUpdated = cmm.Parameters.Item(idxTimestamp).Value;
It appears the move to the ASP.Net engine (and JScript.Net from javascript) has stopped this happenning. Can anyone shed any light please
- Next message: markeboy: "RE: Receiving COM return parameter value in ASP.Net not working"
- Previous message: William \(Bill\) Vaughn: "Re: What is the best Reportinf mechanism in .Net ?"
- Next in thread: markeboy: "RE: Receiving COM return parameter value in ASP.Net not working"
- Reply: markeboy: "RE: Receiving COM return parameter value in ASP.Net not working"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|