|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP.Net/C# - SQL Help
I have code that currently retrieves a single value from stored procedure using ExecuteScalar. We just added an output parameter to the stored procedure. Can I still use the ExecuteScalar to get the single value returned and also access the uutput paramater or do I nedd to chaned the SQL call to something else.
Thanks |
|
#2
|
||||
|
||||
|
Hi and welcome to the forums!!
As far as i know, you wont be able to get more than 1 variables from executescalar. For that you'll need something like datareader. |
|
#3
|
|||
|
|||
|
Quote:
I know that the ExecuteScalar only brings back one variable, but what I want to know is.. are output sql output parameters available? Thanks |
|
#4
|
||||
|
||||
|
Yes they should be available.
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > ASP.Net/C# - SQL Help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|