Click here to Skip to main content
15,922,584 members
Home / Discussions / Database
   

Database

 
GeneralCreating a new database... Pin
Amirjalaly3-Dec-03 2:56
Amirjalaly3-Dec-03 2:56 
GeneralRe: Creating a new database... Pin
Rob Graham9-Dec-03 4:45
Rob Graham9-Dec-03 4:45 
GeneralRows Pin
Anonymous2-Dec-03 9:36
Anonymous2-Dec-03 9:36 
GeneralRe: Rows Pin
Colin Angus Mackay3-Dec-03 15:27
Colin Angus Mackay3-Dec-03 15:27 
GeneralAdding numbers in Access DB displaying the results via ASP page Pin
Petu1-Dec-03 10:14
Petu1-Dec-03 10:14 
GeneralMSDE Configuration Tool Pin
Rocky Moore1-Dec-03 9:44
Rocky Moore1-Dec-03 9:44 
QuestionMultiple Result sets ADO.NET?? Pin
Rocky Moore1-Dec-03 6:27
Rocky Moore1-Dec-03 6:27 
AnswerRe: Multiple Result sets ADO.NET?? Pin
Heath Stewart1-Dec-03 8:25
protectorHeath Stewart1-Dec-03 8:25 
Using multiple SELECTs with a DataAdapter yields multiple DataTables in a DataSet that you pass to DataAdapter.Fill. If you want any of the DataTables named, you must use a DataTableMapping which can be assigned to the DataAdapter.

When you use a SqlCommand, you can get multiple result sets by calling SqlCommand.ExecuteReader with either no parameters or CommandBehavior.Default, so long as CommandBehavior.SingleResult is not passed. Then you loop over SqlDataReader.NextResult() and inside loop over SqlDataReader.Read().

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Multiple Result sets ADO.NET?? Pin
Rocky Moore1-Dec-03 9:35
Rocky Moore1-Dec-03 9:35 
GeneralRe: Multiple Result sets ADO.NET?? Pin
Heath Stewart1-Dec-03 10:32
protectorHeath Stewart1-Dec-03 10:32 
GeneralRe: Multiple Result sets ADO.NET?? Pin
Rocky Moore1-Dec-03 21:18
Rocky Moore1-Dec-03 21:18 
GeneralRe: Multiple Result sets ADO.NET?? Pin
Heath Stewart2-Dec-03 2:57
protectorHeath Stewart2-Dec-03 2:57 
GeneralRe: Multiple Result sets ADO.NET?? Pin
Rocky Moore1-Dec-03 23:08
Rocky Moore1-Dec-03 23:08 
General2 tables and a stored procedure Pin
toticow1-Dec-03 2:14
susstoticow1-Dec-03 2:14 
GeneralRe: 2 tables and a stored procedure Pin
Mike Dimmick1-Dec-03 3:17
Mike Dimmick1-Dec-03 3:17 
GeneralMonitor bandwidth usage Pin
Paul Watson1-Dec-03 0:52
sitebuilderPaul Watson1-Dec-03 0:52 
GeneralRe: Monitor bandwidth usage Pin
Rocky Moore1-Dec-03 6:24
Rocky Moore1-Dec-03 6:24 
GeneralPreparing SQL for Insert Pin
FruitBatInShades30-Nov-03 23:34
FruitBatInShades30-Nov-03 23:34 
GeneralRe: Preparing SQL for Insert Pin
Mike Dimmick1-Dec-03 3:43
Mike Dimmick1-Dec-03 3:43 
GeneralRe: Preparing SQL for Insert Pin
Sean McCormack3-Dec-03 3:01
Sean McCormack3-Dec-03 3:01 
Generalrows in nested relationship couldnt be deleted Pin
meroo30-Nov-03 18:47
meroo30-Nov-03 18:47 
GeneralSql query question Pin
pankajdaga30-Nov-03 3:26
pankajdaga30-Nov-03 3:26 
GeneralRe: Sql query question Pin
Ian Darling30-Nov-03 3:50
Ian Darling30-Nov-03 3:50 
Generalserver explorer Pin
Member 72360328-Nov-03 23:48
Member 72360328-Nov-03 23:48 
GeneralRe: server explorer Pin
Mike Dimmick1-Dec-03 6:44
Mike Dimmick1-Dec-03 6:44 

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.