Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
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 PinPopular
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 
GeneralRe: Junk data Display on Page Load Pin
Devkranth Kishore Vanja22-Feb-11 19:19
Devkranth Kishore Vanja22-Feb-11 19:19 
AnswerRe: Junk data Display on Page Load Pin
Bernhard Hiller22-Feb-11 20:05
Bernhard Hiller22-Feb-11 20:05 
GeneralRe: Junk data Display on Page Load Pin
Devkranth Kishore Vanja22-Feb-11 20:16
Devkranth Kishore Vanja22-Feb-11 20:16 
GeneralRe: Junk data Display on Page Load Pin
Bernhard Hiller22-Feb-11 20:47
Bernhard Hiller22-Feb-11 20:47 
GeneralRe: Junk data Display on Page Load Pin
Devkranth Kishore Vanja22-Feb-11 22:15
Devkranth Kishore Vanja22-Feb-11 22:15 
Questionanimation Pin
jashimu22-Feb-11 9:58
jashimu22-Feb-11 9:58 
AnswerRe: animation Pin
Luc Pattyn22-Feb-11 10:15
sitebuilderLuc Pattyn22-Feb-11 10:15 
GeneralRe: animation Pin
musefan23-Feb-11 5:10
musefan23-Feb-11 5:10 
AnswerRe: animation Pin
PIEBALDconsult22-Feb-11 10:31
mvePIEBALDconsult22-Feb-11 10:31 
GeneralRe: animation Pin
jashimu22-Feb-11 10:35
jashimu22-Feb-11 10:35 

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.