Click here to Skip to main content
15,902,636 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerCross Posts are evil Pin
Urs Enzler16-Aug-07 23:54
Urs Enzler16-Aug-07 23:54 
QuestionMultiple Select Statements in DataAdapter Pin
VanithaVasu16-Aug-07 22:27
VanithaVasu16-Aug-07 22:27 
AnswerRe: Multiple Select Statements in DataAdapter Pin
S A R I T H16-Aug-07 22:43
S A R I T H16-Aug-07 22:43 
AnswerRe: Multiple Select Statements in DataAdapter Pin
N a v a n e e t h16-Aug-07 22:58
N a v a n e e t h16-Aug-07 22:58 
GeneralRe: Multiple Select Statements in DataAdapter Pin
VanithaVasu16-Aug-07 23:07
VanithaVasu16-Aug-07 23:07 
GeneralRe: Multiple Select Statements in DataAdapter Pin
sidbaruah16-Aug-07 23:16
sidbaruah16-Aug-07 23:16 
GeneralRe: Multiple Select Statements in DataAdapter Pin
N a r e s h P a t e l16-Aug-07 23:20
N a r e s h P a t e l16-Aug-07 23:20 
GeneralRe: Multiple Select Statements in DataAdapter Pin
N a v a n e e t h16-Aug-07 23:34
N a v a n e e t h16-Aug-07 23:34 
VanithaVasu wrote:
I want to the two tables separately in my dataset.
How to do so?


As I told before, stored procedure's would be better approach for your problem. Write a stored procedure like

CREATE PROCEDURE [dbo].[MultipleSelect] 

AS

SELECT * FROM FisrtTable
SELECT * FROM SecondTable

GO


Now Set command type to stored procedures for your OleDbCommand. Pass this stored procedures and fill dataset. This will give you two tables in dataset. Returning multiple recordset is a recommended practice by MSDN, which boosts performance.


QuestionPublishing a web application Pin
samerh16-Aug-07 21:45
samerh16-Aug-07 21:45 
QuestionWorking with PDF. Pin
mani_iips16-Aug-07 21:21
mani_iips16-Aug-07 21:21 
QuestionHelp regarding refreshing a page. Pin
anu8116-Aug-07 21:18
anu8116-Aug-07 21:18 
AnswerRe: Help regarding refreshing a page. Pin
Mark Churchill16-Aug-07 21:28
Mark Churchill16-Aug-07 21:28 
GeneralRe: Help regarding refreshing a page. Pin
anu8116-Aug-07 21:37
anu8116-Aug-07 21:37 
GeneralRe: Help regarding refreshing a page. Pin
Michael Sync16-Aug-07 22:03
Michael Sync16-Aug-07 22:03 
GeneralRe: Help regarding refreshing a page. Pin
N a v a n e e t h16-Aug-07 22:34
N a v a n e e t h16-Aug-07 22:34 
AnswerRe: Help regarding refreshing a page. Pin
S A R I T H16-Aug-07 21:37
S A R I T H16-Aug-07 21:37 
QuestionMy page change event does not fire for first page. Pin
Anees Mitha16-Aug-07 21:09
Anees Mitha16-Aug-07 21:09 
AnswerRe: My page change event does not fire for first page. Pin
VanithaVasu16-Aug-07 22:39
VanithaVasu16-Aug-07 22:39 
GeneralRe: My page change event does not fire for first page. Pin
N a v a n e e t h16-Aug-07 23:55
N a v a n e e t h16-Aug-07 23:55 
AnswerRe: My page change event does not fire for first page. Pin
N a v a n e e t h16-Aug-07 23:52
N a v a n e e t h16-Aug-07 23:52 
GeneralRe: My page change event does not fire for first page. Pin
Anees Mitha17-Aug-07 0:18
Anees Mitha17-Aug-07 0:18 
GeneralRe: My page change event does not fire for first page. Pin
Anees Mitha17-Aug-07 0:59
Anees Mitha17-Aug-07 0:59 
QuestionHtml to Xml Conversion and viceversa Pin
ayurhdfkl16-Aug-07 21:01
ayurhdfkl16-Aug-07 21:01 
AnswerRe: Html to Xml Conversion and viceversa Pin
daniel__c16-Aug-07 21:08
daniel__c16-Aug-07 21:08 
GeneralRe: Html to Xml Conversion and viceversa Pin
ayurhdfkl16-Aug-07 21:14
ayurhdfkl16-Aug-07 21:14 

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.