Click here to Skip to main content
15,919,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: oledbconnection array Pin
Dave Kreskowiak7-Oct-05 16:54
mveDave Kreskowiak7-Oct-05 16:54 
GeneralForm returning value Pin
JensB18-Sep-04 0:03
JensB18-Sep-04 0:03 
GeneralRe: Form returning value Pin
maciekj18-Sep-04 6:36
maciekj18-Sep-04 6:36 
QuestionSmart device application - How to give the path? Pin
Member 76608417-Sep-04 21:57
Member 76608417-Sep-04 21:57 
AnswerRe: Smart device application - How to give the path? Pin
Dave Kreskowiak20-Sep-04 3:07
mveDave Kreskowiak20-Sep-04 3:07 
GeneralHelp with Forms Pin
Mega117-Sep-04 15:27
Mega117-Sep-04 15:27 
GeneralRe: Help with Forms Pin
Steven J Mitchell17-Sep-04 19:46
Steven J Mitchell17-Sep-04 19:46 
GeneralRe: Help with Forms Pin
Dave Kreskowiak20-Sep-04 3:02
mveDave Kreskowiak20-Sep-04 3:02 
Generalstored procedures Pin
AnnSol17-Sep-04 13:54
AnnSol17-Sep-04 13:54 
GeneralRe: stored procedures Pin
Anonymous17-Sep-04 17:25
Anonymous17-Sep-04 17:25 
GeneralProblem in "TREE CONTROL" in VB.NET Pin
eshban28417-Sep-04 9:29
eshban28417-Sep-04 9:29 
GeneralRe: Problem in "TREE CONTROL" in VB.NET Pin
Anonymous17-Sep-04 10:46
Anonymous17-Sep-04 10:46 
Generalfrom Srinivas Pin
SrinivasRao Sambaraju17-Sep-04 8:45
SrinivasRao Sambaraju17-Sep-04 8:45 
Generalvb.net Pin
nazerudeen17-Sep-04 6:17
nazerudeen17-Sep-04 6:17 
GeneralRe: vb.net Pin
Anonymous17-Sep-04 11:26
Anonymous17-Sep-04 11:26 
GeneralImport Excel workbook into Vb.Net Pin
danny8017-Sep-04 5:33
danny8017-Sep-04 5:33 
GeneralRe: Import Excel workbook into Vb.Net Pin
Anonymous17-Sep-04 9:01
Anonymous17-Sep-04 9:01 
GeneralVariable evaluation Pin
LC Chan17-Sep-04 5:21
LC Chan17-Sep-04 5:21 
GeneralRe: Variable evaluation Pin
Dave Kreskowiak17-Sep-04 6:05
mveDave Kreskowiak17-Sep-04 6:05 
GeneralStorage Pin
schnoodles17-Sep-04 4:19
schnoodles17-Sep-04 4:19 
GeneralRe: Storage Pin
Anonymous17-Sep-04 9:09
Anonymous17-Sep-04 9:09 
GeneralVB.Net 3 Tier Architecture.. Pin
danishfast17-Sep-04 0:53
danishfast17-Sep-04 0:53 
GeneralGraphics problem Pin
Anonymous16-Sep-04 23:54
Anonymous16-Sep-04 23:54 
GeneralADO.NET and VB Pin
Imtiaz Murtaza16-Sep-04 20:13
Imtiaz Murtaza16-Sep-04 20:13 
GeneralRe: ADO.NET and VB Pin
Colin Angus Mackay17-Sep-04 2:28
Colin Angus Mackay17-Sep-04 2:28 
From the code you have given the result will not be in the Command Object as there are no output parameters.

Second, the rs.ExecuteNonQuery() won't do anything useful because your SQL is a SELECT statement. ExecuteNonQuery is for when you do not expect any results back.

Your results are in the SqlDataReader object. Use the SqlDataReader.Read()[^] method to extract each record. The return value of this method will be true if a record was read, or false if there are no more records.

The data reader holds tha values of the current record, it has a number of Get...[^] methods to assist you in getting the values for each of the fields.

After you have the values you need for a record, loop around again calling the Read method until you have all your data.

Does this help?


"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!


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.