J
jack tonk
Hey everyone. I've been trying to use the Data Access
Application Block. 'Tis pretty cool. One problem I've
found....Check this code:
Dim params() As SqlParameter
params = SqlHelperParameterCache.GetSpParameterSet
(ConnectionString, ProcName, False)
params(0).Value = "test"
params(1).Value = "test2"
Dim ds As DataSet = SqlHelper.ExecuteDataset
(ConnectionString, ProcName, params)
The above code works fine. It returns ds after feeding
the proc two parameters.
Now change the IncludeReturnValueParameter value to True.
Now the first part of the code becomes this:
Dim params() As SqlParameter
params = SqlHelperParameterCache.GetSpParameterSet
(ConnectionString, ProcName, True)
How do you get the @RETURN_VALUE parameter back from the
proc?? I've tried several approaches with no luck.
Has anyone been able to get return values from stored
procedures using the Data Access Application Block?
Thanks!
Application Block. 'Tis pretty cool. One problem I've
found....Check this code:
Dim params() As SqlParameter
params = SqlHelperParameterCache.GetSpParameterSet
(ConnectionString, ProcName, False)
params(0).Value = "test"
params(1).Value = "test2"
Dim ds As DataSet = SqlHelper.ExecuteDataset
(ConnectionString, ProcName, params)
The above code works fine. It returns ds after feeding
the proc two parameters.
Now change the IncludeReturnValueParameter value to True.
Now the first part of the code becomes this:
Dim params() As SqlParameter
params = SqlHelperParameterCache.GetSpParameterSet
(ConnectionString, ProcName, True)
How do you get the @RETURN_VALUE parameter back from the
proc?? I've tried several approaches with no luck.
Has anyone been able to get return values from stored
procedures using the Data Access Application Block?
Thanks!