Click here to Skip to main content
15,905,616 members
Home / Discussions / Database
   

Database

 
GeneralRe: Returning a string value from SP Pin
Colin Angus Mackay3-Aug-08 21:27
Colin Angus Mackay3-Aug-08 21:27 
GeneralRe: Returning a string value from SP Pin
Vimalsoft(Pty) Ltd3-Aug-08 21:33
professionalVimalsoft(Pty) Ltd3-Aug-08 21:33 
GeneralRe: Returning a string value from SP Pin
Colin Angus Mackay3-Aug-08 22:20
Colin Angus Mackay3-Aug-08 22:20 
GeneralRe: Returning a string value from SP Pin
Vimalsoft(Pty) Ltd3-Aug-08 22:40
professionalVimalsoft(Pty) Ltd3-Aug-08 22:40 
GeneralRe: Returning a string value from SP Pin
balaji.t3-Aug-08 23:33
balaji.t3-Aug-08 23:33 
GeneralRe: Returning a string value from SP Pin
Colin Angus Mackay4-Aug-08 0:27
Colin Angus Mackay4-Aug-08 0:27 
GeneralRe: Returning a string value from SP Pin
Vimalsoft(Pty) Ltd4-Aug-08 1:31
professionalVimalsoft(Pty) Ltd4-Aug-08 1:31 
QuestionRe: Returning a string value from SP Pin
balaji.t4-Aug-08 2:32
balaji.t4-Aug-08 2:32 
hi folks,

Ill put my doubt clearly.Wht i sent earlier is a chat slang Smile | :) ...Can u tell me whether it is possible to return a string value as output in the front end using a Stored Procedure?
Ive created a stored procedure like this

CREATE PROCEDURE [dbo].[StoredProcedure1]
(
@a int,
@b varchar(10) output
)
AS
BEGIN
set @b = 'RE00001'
--set @b = 20
--return @b
END

in LINQ
-------
i call the sp like this

DC1DataContext obj = new DC1DataContext();
string b = null;
string c = obj.StoredProcedure1(1, ref b).ToString();

I face 2 issues
1.if I give return @b(thats y commented) then i get error since sp doesnt return a string

2.if i dont give return then in the code behind i get 0 as the value of c.

can u let me know whether is it possible to return a string using SP?
if so how?

T.Balaji

AnswerRe: Returning a string value from SP Pin
Vimalsoft(Pty) Ltd4-Aug-08 4:16
professionalVimalsoft(Pty) Ltd4-Aug-08 4:16 
GeneralRe: Returning a string value from SP Pin
balaji.t4-Aug-08 19:50
balaji.t4-Aug-08 19:50 
GeneralRe: Returning a string value from SP Pin
Mycroft Holmes4-Aug-08 2:25
professionalMycroft Holmes4-Aug-08 2:25 
GeneralRe: Returning a string value from SP Pin
balaji.t4-Aug-08 2:35
balaji.t4-Aug-08 2:35 
GeneralRe: Returning a string value from SP Pin
balaji.t4-Aug-08 2:38
balaji.t4-Aug-08 2:38 
GeneralRe: Returning a string value from SP Pin
SomeGuyThatIsMe4-Aug-08 3:24
SomeGuyThatIsMe4-Aug-08 3:24 
GeneralRe: Returning a string value from SP Pin
balaji.t4-Aug-08 19:30
balaji.t4-Aug-08 19:30 
GeneralRe: Returning a string value from SP Pin
SomeGuyThatIsMe5-Aug-08 1:50
SomeGuyThatIsMe5-Aug-08 1:50 
AnswerHow many forums have you asked this question on? Pin
Pete O'Hanlon4-Aug-08 9:26
mvePete O'Hanlon4-Aug-08 9:26 
GeneralRe: How many forums have you asked this question on? Pin
balaji.t4-Aug-08 19:27
balaji.t4-Aug-08 19:27 
QuestionGroup by problem Pin
Tauseef A3-Aug-08 17:40
Tauseef A3-Aug-08 17:40 
AnswerRe: Group by problem Pin
Mycroft Holmes3-Aug-08 19:42
professionalMycroft Holmes3-Aug-08 19:42 
QuestionHow to count the number of cases submitted daily weekly quarterly and yearly basis Pin
Rameez Raja3-Aug-08 16:50
Rameez Raja3-Aug-08 16:50 
AnswerRe: How to count the number of cases submitted daily weekly quarterly and yearly basis Pin
Mycroft Holmes3-Aug-08 17:08
professionalMycroft Holmes3-Aug-08 17:08 
AnswerRe: How to count the number of cases submitted daily weekly quarterly and yearly basis Pin
PIEBALDconsult3-Aug-08 17:26
mvePIEBALDconsult3-Aug-08 17:26 
GeneralRe: How to count the number of cases submitted daily weekly quarterly and yearly basis Pin
Rameez Raja3-Aug-08 20:46
Rameez Raja3-Aug-08 20:46 
GeneralRe: How to count the number of cases submitted daily weekly quarterly and yearly basis Pin
Mycroft Holmes4-Aug-08 2:30
professionalMycroft Holmes4-Aug-08 2:30 

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.