Click here to Skip to main content
15,908,015 members
Home / Discussions / C#
   

C#

 
QuestionUI for ACCESS database in C# [modified] Pin
Member 769794322-Feb-11 23:05
Member 769794322-Feb-11 23:05 
AnswerRe: UI for ACCESS database in C# Pin
Hum Dum22-Feb-11 23:27
Hum Dum22-Feb-11 23:27 
AnswerRe: UI for ACCESS database in C# Pin
OriginalGriff22-Feb-11 23:28
mveOriginalGriff22-Feb-11 23:28 
AnswerRe: UI for ACCESS database in C# Pin
Hum Dum23-Feb-11 17:37
Hum Dum23-Feb-11 17:37 
Jokesend the information of textbox to combobox [modified] Pin
hanis2926822-Feb-11 23:02
hanis2926822-Feb-11 23:02 
AnswerRe: send the information of textbox to combobox Pin
Hum Dum22-Feb-11 23:21
Hum Dum22-Feb-11 23:21 
GeneralRe: send the information of textbox to combobox Pin
DaveyM6923-Feb-11 0:41
professionalDaveyM6923-Feb-11 0:41 
AnswerRe: send the information of textbox to combobox Pin
Richard MacCutchan22-Feb-11 23:22
mveRichard MacCutchan22-Feb-11 23:22 
AnswerRe: send the information of textbox to combobox Pin
OriginalGriff22-Feb-11 23:29
mveOriginalGriff22-Feb-11 23:29 
GeneralRe: send the information of textbox to combobox Pin
Richard MacCutchan23-Feb-11 0:07
mveRichard MacCutchan23-Feb-11 0:07 
GeneralRe: send the information of textbox to combobox Pin
OriginalGriff23-Feb-11 0:09
mveOriginalGriff23-Feb-11 0:09 
QuestionByte arrays to pdf Pin
Etienne_12322-Feb-11 22:13
Etienne_12322-Feb-11 22:13 
AnswerRe: Byte arrays to pdf Pin
Wayne Gaylard22-Feb-11 22:34
professionalWayne Gaylard22-Feb-11 22:34 
GeneralRe: Byte arrays to pdf Pin
Etienne_12323-Feb-11 3:48
Etienne_12323-Feb-11 3:48 
GeneralRe: Byte arrays to pdf Pin
Wayne Gaylard23-Feb-11 19:57
professionalWayne Gaylard23-Feb-11 19:57 
GeneralRe: Byte arrays to pdf Pin
RaviRanjanKr25-Feb-11 18:03
professionalRaviRanjanKr25-Feb-11 18:03 
QuestionSqlDataReader vs. SqlDataAdapter Pin
Dewald22-Feb-11 19:26
Dewald22-Feb-11 19:26 
AnswerRe: SqlDataReader vs. SqlDataAdapter Pin
OriginalGriff22-Feb-11 20:56
mveOriginalGriff22-Feb-11 20:56 
The big difference is time.

When you use a SqlDataReader, you open a connection, start reading, then loop though each record, processing it. When you have finished, you close the database connection.

When you use a SqlDataAdapter, it opens the connection, takes a snapshot of the database, and closes the connection. You can then process the records.

You can use a DataAdapter to bind a data source to a control, such as a DataGridView, rather than iterating though each record.

Have a look on Google: "SqlDataReader vs. SqlDataAdapter" will give you a lot of hits, most of which are pretty useful.


(And yes, I do know that a SqlDataAdapter leaves the connection open if it was already - that's the advanced course, ok?)
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."

GeneralRe: SqlDataReader vs. SqlDataAdapter Pin
Dewald22-Feb-11 21:20
Dewald22-Feb-11 21:20 
GeneralRe: SqlDataReader vs. SqlDataAdapter Pin
PIEBALDconsult23-Feb-11 2:15
mvePIEBALDconsult23-Feb-11 2:15 
GeneralRe: SqlDataReader vs. SqlDataAdapter Pin
Dewald23-Feb-11 2:28
Dewald23-Feb-11 2:28 
AnswerRe: SqlDataReader vs. SqlDataAdapter Pin
Wayne Gaylard22-Feb-11 21:15
professionalWayne Gaylard22-Feb-11 21:15 
AnswerRe: SqlDataReader vs. SqlDataAdapter Pin
PIEBALDconsult23-Feb-11 2:06
mvePIEBALDconsult23-Feb-11 2:06 
QuestionJunk data Display on Page Load Pin
Devkranth Kishore Vanja22-Feb-11 17:37
Devkranth Kishore Vanja22-Feb-11 17:37 
AnswerRe: Junk data Display on Page Load Pin
_Maxxx_22-Feb-11 18:29
professional_Maxxx_22-Feb-11 18:29 

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.