Click here to Skip to main content
15,888,968 members
Home / Discussions / Database
   

Database

 
AnswerRe: Remote SQL Database Pin
Colin Angus Mackay9-Jan-06 1:14
Colin Angus Mackay9-Jan-06 1:14 
Questionsql: count product's item, how about the zero item? Pin
zrocb818-Jan-06 12:27
zrocb818-Jan-06 12:27 
AnswerRe: sql: count product's item, how about the zero item? Pin
nguyenvhn8-Jan-06 17:08
nguyenvhn8-Jan-06 17:08 
GeneralRe: sql: count product's item, how about the zero item? Pin
zrocb818-Jan-06 17:34
zrocb818-Jan-06 17:34 
QuestionHow can i shutdown database in oracle 10g Pin
Ta_Tee4737-Jan-06 17:26
Ta_Tee4737-Jan-06 17:26 
AnswerRe: How can i shutdown database in oracle 10g Pin
Dave Kreskowiak8-Jan-06 16:14
mveDave Kreskowiak8-Jan-06 16:14 
QuestionExport 50,000 records to a Text File. Pin
kakarato6-Jan-06 7:52
kakarato6-Jan-06 7:52 
AnswerRe: Export 50,000 records to a Text File. Pin
Colin Angus Mackay6-Jan-06 12:00
Colin Angus Mackay6-Jan-06 12:00 
kakarato wrote:
into a data set and later loop the DataTable in the DataSet and export write it to a text file ?
Or select in it into a DataReader and loop the DataReader? Which one will provide a better performance ?


If you use a DataAdapter to fill a DataSet then the entire contents are read with a DataReader (that is how a DataAdapter gets the information from the database) and the DataTable is populated with the data, you have to wait for this operation to complete before you can access even one row. Then you can write it to your file.

With a DataReader you can write the rows directly to the file as you get them. You do not have to wait for a DataTable object to be filled and you do not waste that memory either.

As you have discovered already that the user is left hanging around for a long time while the DataSet is filled, while the DataReader allows you to give feedback on progress immediately.

ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"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

GeneralRe: Export 50,000 records to a Text File. Pin
kakarato7-Jan-06 6:22
kakarato7-Jan-06 6:22 
Questionincreasing size of LDF file Pin
Member 20731416-Jan-06 2:52
Member 20731416-Jan-06 2:52 
AnswerRe: increasing size of LDF file Pin
Dave Kreskowiak6-Jan-06 5:17
mveDave Kreskowiak6-Jan-06 5:17 
AnswerRe: increasing size of LDF file Pin
Dave Kreskowiak6-Jan-06 7:05
mveDave Kreskowiak6-Jan-06 7:05 
GeneralRe: increasing size of LDF file Pin
Member 20731416-Jan-06 17:47
Member 20731416-Jan-06 17:47 
GeneralRe: increasing size of LDF file Pin
Dave Kreskowiak7-Jan-06 6:30
mveDave Kreskowiak7-Jan-06 6:30 
QuestionSQL Sample Databases Pin
Brendan Vogt6-Jan-06 0:34
Brendan Vogt6-Jan-06 0:34 
AnswerRe: SQL Sample Databases Pin
Colin Angus Mackay6-Jan-06 1:24
Colin Angus Mackay6-Jan-06 1:24 
QuestionRe: SQL Sample Databases Pin
Brendan Vogt6-Jan-06 1:29
Brendan Vogt6-Jan-06 1:29 
AnswerRe: SQL Sample Databases Pin
gharry6-Jan-06 5:44
gharry6-Jan-06 5:44 
QuestionSQL Doubt. Pin
<color>Aljechin 5-Jan-06 19:32
<color>Aljechin 5-Jan-06 19:32 
AnswerRe: SQL Doubt. Pin
nguyenvhn5-Jan-06 20:48
nguyenvhn5-Jan-06 20:48 
AnswerRe: SQL Doubt. Pin
Colin Angus Mackay5-Jan-06 20:49
Colin Angus Mackay5-Jan-06 20:49 
QuestionDAO Notification? Pin
lynchspawn5-Jan-06 9:51
lynchspawn5-Jan-06 9:51 
AnswerRe: DAO Notification? Pin
Dave Kreskowiak6-Jan-06 5:05
mveDave Kreskowiak6-Jan-06 5:05 
QuestionPartial name Pin
gharry5-Jan-06 9:47
gharry5-Jan-06 9:47 
AnswerRe: Partial name Pin
Colin Angus Mackay5-Jan-06 11:01
Colin Angus Mackay5-Jan-06 11:01 

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.