Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a Stored Procedure with Output Parameter
Message
De
26/06/2010 19:37:45
 
 
À
26/06/2010 15:49:28
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01470620
Message ID:
01470702
Vues:
34
>It appears to be something with the way SQL works and the stored Procedure. When I run the stored procedure directly in SSMS I can see the value of the parameter in addition to the return value of 0, but in code I can't get that returned. I eventually tried using just native dot net stuff without the mm layer and I get the same thing so ruled out any mm implementation of it. I am really not sure right now what is causing the issue and I am hoping maybe some others from the SQL group will see something about the way the SP is constructed.

Hi Tim,

It could be the SP or the code used to retrieve the OUTPUT parameter ... it's hard to say because you guys have posted a bunch of different versions of SP and code in this thread, and I can't say for sure anymore which is the final version that isn't working for you.

If you can post it again, SP and code, then maybe something will jump out at me ...

EDIT ... what I mean, if it wasn't clear, is to post the native .NET code, not the MM-based code.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform