how to write code "how to call one command two tables data in ado.net"?
plz help me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jitendra KumarPosted Jan 14, 2015, 4:06 AM
Strored proc like this :-
create proc sp_GetTablesRcd
As
Select * from table1
Select * from table2
Select * from table3
Select * from table4
See attached file :-
Chinna NethaPosted Jan 14, 2015, 5:48 AM
Jitendra KumarPosted Jan 14, 2015, 3:24 AM
Kindly Share code.
Chinna NethaPosted Jan 14, 2015, 3:09 AM
Jitendra KumarPosted Jan 14, 2015, 1:22 AM
Why are you select 6 tables in one select command.
Use stored proc like this.
Create proc sp_SelTable
as
Select * from table 1
Select * from table 2
Select * from table 3
Select * from table 4
Select * from table 5
Select * from table 6
return six tables. hold the record in dataset on pageload event.
bind gridview acc to table record like this.
If(ds.table[1].rows.count > 0)
{
}
If(ds.table[2].rows.count > 0)
{
}
Chinna NethaPosted Jan 14, 2015, 1:10 AM
In papers.aspx web form six gird view is there .... and 6 tables are there(back end)
i want how to call 6 tables in page_load event ?
ex:string s="select * form table1,table2,table3,table3,table4,table5,table6";
tell me single command in ado.net
help me plz
Jitendra KumarPosted Jan 14, 2015, 12:56 AM
Please explain more or share code for better understanding.
Chinna NethaPosted Jan 14, 2015, 12:52 AM
6 tables are there..6 different gridview are there...
how to call 6 tables in ado.net?
how to write code in ado.net for page_load event?
....
Jitendra KumarPosted Jan 13, 2015, 10:53 PM
Use join.