Click here to Skip to main content
15,914,360 members
Home / Discussions / Database
   

Database

 
GeneralRe: prob in sp Pin
Rob Graham16-Feb-05 15:59
Rob Graham16-Feb-05 15:59 
GeneralRe: prob in sp Pin
amalatsliit16-Feb-05 19:33
amalatsliit16-Feb-05 19:33 
GeneralRe: prob in sp Pin
Mike Dimmick17-Feb-05 1:31
Mike Dimmick17-Feb-05 1:31 
GeneralRe: prob in sp Pin
amalatsliit17-Feb-05 16:01
amalatsliit17-Feb-05 16:01 
GeneralCasting error when passing a strongly typed dataset from a Webservice Pin
dazzler215-Feb-05 16:41
dazzler215-Feb-05 16:41 
GeneralRe: Casting error when passing a strongly typed dataset from a Webservice Pin
dazzler215-Feb-05 20:47
dazzler215-Feb-05 20:47 
Generalprob with sp return value Pin
amalatsliit15-Feb-05 15:55
amalatsliit15-Feb-05 15:55 
GeneralRe: prob with sp return value Pin
Scott Serl16-Feb-05 8:52
Scott Serl16-Feb-05 8:52 
Use dbcmdwr.AddParameter.
The 4th parameter is 'direction', and you use ParameterDirection.ReturnValue for the value. After the stored procedure is run, just get the value like you would any other output parameter:
dbcmdwr.GetParameterValue("@MyRetValParameter")

I don't use return values in my stored procedures because not all db support return values, so I code my stored procedures to use output parameters for all values returned. I think this is mentioned in the documentation for the enterise library.
GeneralRe: prob with sp return value Pin
amalatsliit16-Feb-05 15:17
amalatsliit16-Feb-05 15:17 
GeneralRe: prob with sp return value Pin
Scott Serl16-Feb-05 16:25
Scott Serl16-Feb-05 16:25 
GeneralRe: prob with sp return value Pin
amalatsliit16-Feb-05 19:25
amalatsliit16-Feb-05 19:25 
QuestionCould someone answer this? Pin
Tom Wright15-Feb-05 10:51
Tom Wright15-Feb-05 10:51 
AnswerRe: Could someone answer this? Pin
Rob Graham16-Feb-05 16:11
Rob Graham16-Feb-05 16:11 
GeneralRe: Could someone answer this? Pin
Tom Wright17-Feb-05 4:27
Tom Wright17-Feb-05 4:27 
GeneralRe: Could someone answer this? Pin
Rob Graham17-Feb-05 7:54
Rob Graham17-Feb-05 7:54 
GeneralRe: Could someone answer this? Pin
Tom Wright22-Feb-05 7:47
Tom Wright22-Feb-05 7:47 
GeneralADODB Record set Pin
HahnTech15-Feb-05 9:47
HahnTech15-Feb-05 9:47 
GeneralRe: ADODB Record set Pin
Anonymous16-Feb-05 11:46
Anonymous16-Feb-05 11:46 
GeneralData merge Pin
pedros7314-Feb-05 23:41
pedros7314-Feb-05 23:41 
GeneralRe: Data merge Pin
pjholliday15-Feb-05 0:33
pjholliday15-Feb-05 0:33 
GeneralRe: Data merge Pin
pedros7315-Feb-05 3:11
pedros7315-Feb-05 3:11 
GeneralRe: Data merge Pin
numbrel15-Feb-05 9:01
numbrel15-Feb-05 9:01 
GeneralRe: Data merge Pin
pedros7315-Feb-05 9:14
pedros7315-Feb-05 9:14 
GeneralRe: Data merge Pin
numbrel15-Feb-05 10:06
numbrel15-Feb-05 10:06 
GeneralRe: Data merge Pin
pedros7316-Feb-05 4:35
pedros7316-Feb-05 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.