Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to export datagrid into excel in winform in C# ? Pin
Nader Elshehabi29-Nov-06 22:34
Nader Elshehabi29-Nov-06 22:34 
AnswerRe: how to export datagrid into excel in winform in C# ? Pin
eggsovereasy30-Nov-06 4:01
eggsovereasy30-Nov-06 4:01 
QuestionMS Office System Color? Pin
god4k29-Nov-06 22:11
god4k29-Nov-06 22:11 
AnswerRe: MS Office System Color? Pin
ednrgc30-Nov-06 6:25
ednrgc30-Nov-06 6:25 
AnswerRe: MS Office System Color? Pin
Darren Sim30-Nov-06 6:28
Darren Sim30-Nov-06 6:28 
QuestionHow to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK29-Nov-06 21:34
BalasahebK29-Nov-06 21:34 
AnswerRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
Guffa29-Nov-06 21:44
Guffa29-Nov-06 21:44 
GeneralRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK29-Nov-06 22:15
BalasahebK29-Nov-06 22:15 
Thanks for ur reply

In case of ExecuteReader:-

My stored procedure contains two result set

The actual format of stored procedure is
***************************Stored Procedure start*************************************
declare @colid1 int
declare @col2 uniqueidentifire
declare @Status out
set @col1 = "001"
set @col2 = "{123456789}"

declare @id int
select @id = (select id from tableid where colid = @colid1)

Select col1,col2,col3,col4 from tabel where col1 = @colid1 and col2= @col2

if (exists(select col1,col2 from table2 where col1 = @col1 and col2 = @colid))
{
@Status = 1
}
else
{
@Status =0
}

select @Status as status

*****************************Stored Procedure End****************************************

The above stored procedure is given for reference.

Now my problem is
I'm able to retreive column values using ExecuteReader by passing stored procedure properly

ReaderObj = SqlHelper.ExecuteReader(Pass parameters)

ReaderObj retreives only table1 columns values.......now how to read @Status value(look at above stored procedure)

*****************************************************

arParams[0] = new SqlParameter("@prref",SqlDbType.VarChar,20);
arParams[0].Value = strPrjRef;
arParams[1] = new SqlParameter("@userid",SqlDbType.UniqueIdentifier);
arParams[1].Value = new Guid("{7126886d-2538-429c-ab3c-22b3341dcecf}");
arParams[2] = new SqlParameter("@STATUS", SqlDbType.Int);
arParams[2].Direction = ParameterDirection.Output;
RdPrjDetails = SqlHelper.ExecuteReaderconnstr,CommandType.StoredProcedure, "GET_PROJECT_DETAILS_SP", arParams);

*******************************************************

Pls help me in this regardCry | :((


Balasaheb
Software Developer
Platform: Asp.net,vb.net
Database: SQL Server 2000

AnswerRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
Guffa29-Nov-06 23:06
Guffa29-Nov-06 23:06 
GeneralRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK29-Nov-06 23:31
BalasahebK29-Nov-06 23:31 
AnswerRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
Guffa30-Nov-06 0:08
Guffa30-Nov-06 0:08 
GeneralRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK30-Nov-06 0:07
BalasahebK30-Nov-06 0:07 
AnswerRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
Guffa30-Nov-06 0:10
Guffa30-Nov-06 0:10 
GeneralRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK30-Nov-06 0:49
BalasahebK30-Nov-06 0:49 
GeneralRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK30-Nov-06 1:31
BalasahebK30-Nov-06 1:31 
AnswerRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
Guffa30-Nov-06 2:04
Guffa30-Nov-06 2:04 
GeneralRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK30-Nov-06 2:24
BalasahebK30-Nov-06 2:24 
AnswerRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
Not Active29-Nov-06 21:47
mentorNot Active29-Nov-06 21:47 
GeneralRe: How to read value from database using sqlhelper.ExecuteReader & Stored procedure, Output parameter Pin
BalasahebK29-Nov-06 22:09
BalasahebK29-Nov-06 22:09 
Questionpotentially dangerous !!! Pin
Tamimi - Code29-Nov-06 20:58
Tamimi - Code29-Nov-06 20:58 
AnswerRe: potentially dangerous !!! Pin
Guffa30-Nov-06 0:17
Guffa30-Nov-06 0:17 
QuestionXmlDocument - Browser View in Form Pin
h@s@n29-Nov-06 20:35
h@s@n29-Nov-06 20:35 
AnswerRe: XmlDocument - Browser View in Form Pin
Nader Elshehabi29-Nov-06 22:39
Nader Elshehabi29-Nov-06 22:39 
GeneralRe: XmlDocument - Browser View in Form Pin
h@s@n29-Nov-06 23:00
h@s@n29-Nov-06 23:00 
GeneralRe: XmlDocument - Browser View in Form Pin
Nader Elshehabi30-Nov-06 1:06
Nader Elshehabi30-Nov-06 1:06 

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.