Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 6:47
BlackDice24-Oct-06 6:47 
GeneralRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 6:54
ednrgc24-Oct-06 6:54 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 8:33
BlackDice24-Oct-06 8:33 
GeneralRe: odbcdatareader hangs on close Pin
ednrgc24-Oct-06 8:39
ednrgc24-Oct-06 8:39 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:04
BlackDice24-Oct-06 9:04 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:15
BlackDice24-Oct-06 9:15 
GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 9:02
BlackDice24-Oct-06 9:02 
AnswerRe: odbcdatareader hangs on close Pin
Eric Dahlvang24-Oct-06 10:40
Eric Dahlvang24-Oct-06 10:40 
MSDN2: DataReader.Close Method [^]

Remarks
You should close data readers when the consumer has completed reading data or no longer wishes to read any more data. Closing the reader ensures that output parameters, if any, are populated.

Depending on the provider implementation, the Close method may wait for the data reader to finish returning all of the specified data before closing. Compare to the Terminate[^] method.

Suggestion:
If you cannot find a provider that supports the Terminate method, you could split your SQL into chunks of 10,000 or so:
select TOP 10000 * from tblPeople where PeopleID > @nLastID order by PeopleID
Looping and creating a new reader each time until you're done, or the user cancels.



--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

GeneralRe: odbcdatareader hangs on close Pin
BlackDice24-Oct-06 11:20
BlackDice24-Oct-06 11:20 
QuestionGridView and outer joins Pin
lsugirljte24-Oct-06 5:02
lsugirljte24-Oct-06 5:02 
QuestionRe: GridView and outer joins Pin
lsugirljte25-Oct-06 3:31
lsugirljte25-Oct-06 3:31 
QuestionSorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 3:11
Gareth H24-Oct-06 3:11 
AnswerRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 3:14
mentorNot Active24-Oct-06 3:14 
GeneralRe: Sorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 4:30
Gareth H24-Oct-06 4:30 
GeneralRe: Sorting through a Dataset with 1 method Pin
Not Active24-Oct-06 4:51
mentorNot Active24-Oct-06 4:51 
GeneralRe: Sorting through a Dataset with 1 method Pin
Gareth H24-Oct-06 6:23
Gareth H24-Oct-06 6:23 
QuestionTo convert format of a file to other format through C# code Pin
praveen pandey24-Oct-06 3:08
praveen pandey24-Oct-06 3:08 
AnswerRe: To convert format of a file to other format through C# code Pin
Amar Chaudhary24-Oct-06 8:36
Amar Chaudhary24-Oct-06 8:36 
Questionmy computer process all data from internet Pin
nmhai8324-Oct-06 3:03
nmhai8324-Oct-06 3:03 
AnswerRe: my computer process all data from internet Pin
Larantz25-Oct-06 9:37
Larantz25-Oct-06 9:37 
QuestionProblem with ClickOnce Deployment in VS2005 Pin
JacquesDP24-Oct-06 2:57
JacquesDP24-Oct-06 2:57 
AnswerRe: Problem with ClickOnce Deployment in VS2005 Pin
Ed.Poore24-Oct-06 6:34
Ed.Poore24-Oct-06 6:34 
GeneralRe: Problem with ClickOnce Deployment in VS2005 Pin
ednrgc24-Oct-06 8:45
ednrgc24-Oct-06 8:45 
GeneralRe: Problem with ClickOnce Deployment in VS2005 Pin
Ed.Poore24-Oct-06 12:40
Ed.Poore24-Oct-06 12:40 
GeneralRe: Problem with ClickOnce Deployment in VS2005 Pin
JacquesDP24-Oct-06 20:48
JacquesDP24-Oct-06 20:48 

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.