Click here to Skip to main content
15,928,330 members
Home / Discussions / Database
   

Database

 
GeneralRe: connection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami2-May-07 2:40
Rupesh Kumar Swami2-May-07 2:40 
GeneralRe: connection string for connect to SQL server 2000 Pin
Vimalsoft(Pty) Ltd2-May-07 20:05
professionalVimalsoft(Pty) Ltd2-May-07 20:05 
GeneralRe: connection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami2-May-07 20:16
Rupesh Kumar Swami2-May-07 20:16 
GeneralRe: connection string for connect to SQL server 2000 Pin
Tom Wright31-May-07 8:39
Tom Wright31-May-07 8:39 
GeneralRe: connection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami31-May-07 18:54
Rupesh Kumar Swami31-May-07 18:54 
Questiondatagrid Pin
hero19951-May-07 19:43
hero19951-May-07 19:43 
AnswerRe: datagrid Pin
Tirthadip1-May-07 22:46
Tirthadip1-May-07 22:46 
Questioncopy selected record into a .mdb file Pin
hero19951-May-07 19:41
hero19951-May-07 19:41 
GeneralSo I know this guy... Pin
code-frog1-May-07 12:24
professionalcode-frog1-May-07 12:24 
GeneralRe: So I know this guy... Pin
Rob Graham1-May-07 12:54
Rob Graham1-May-07 12:54 
GeneralRe: So I know this guy... Pin
Jerry Hammond1-May-07 18:00
Jerry Hammond1-May-07 18:00 
GeneralRe: So I know this guy... Pin
Colin Angus Mackay2-May-07 0:00
Colin Angus Mackay2-May-07 0:00 
QuestionSqlServer 2005 File Permission Issues Pin
Aaron VanWieren1-May-07 11:19
Aaron VanWieren1-May-07 11:19 
QuestionXML-document into SQL-Column and back Pin
chrstn1-May-07 10:45
chrstn1-May-07 10:45 
QuestionSQL 2000 won't import data Pin
Bryan Bradford1-May-07 7:07
Bryan Bradford1-May-07 7:07 
AnswerRe: SQL 2000 won't import data Pin
Marcus J. Smith1-May-07 8:40
professionalMarcus J. Smith1-May-07 8:40 
GeneralRe: SQL 2000 won't import data Pin
Bryan Bradford1-May-07 11:29
Bryan Bradford1-May-07 11:29 
QuestionHow can I minimize a datatable's memory usage? Pin
Marcus J. Smith1-May-07 6:59
professionalMarcus J. Smith1-May-07 6:59 
AnswerRe: How can I minimize a datatable's memory usage? Pin
kubben1-May-07 7:21
kubben1-May-07 7:21 
GeneralRe: How can I minimize a datatable's memory usage? Pin
Marcus J. Smith1-May-07 8:01
professionalMarcus J. Smith1-May-07 8:01 
GeneralRe: How can I minimize a datatable's memory usage? Pin
kubben1-May-07 8:04
kubben1-May-07 8:04 
GeneralRe: How can I minimize a datatable's memory usage? Pin
Marcus J. Smith1-May-07 8:17
professionalMarcus J. Smith1-May-07 8:17 
GeneralRe: How can I minimize a datatable's memory usage? Pin
kubben1-May-07 8:26
kubben1-May-07 8:26 
GeneralRe: How can I minimize a datatable's memory usage? Pin
Marcus J. Smith2-May-07 10:08
professionalMarcus J. Smith2-May-07 10:08 
kubben wrote:
Yes the DataView will take up less space. How much less. I don't know you would have to try it. I would sugest starting with the datatable build the columns, take the defaultView and put it into a variable. I think the issues with the datatable have to do with its ability to save state. It remembers the original state of the database before any changes were made. After changes are made if you want them to persist then you have to do AcceptChanges. So the datatable is most likely keeping two versions of the record which would at least double the size in memory.

Note If you set a Sort for the dataview you and use a Findrow method based off that sort column. Just thought you would like to know.


Alright, let me say that I have appreciated your help so far, I never thought to use a DataView for this purpose. The speed was reduced by 30 minutes so it is 46% faster that it was before BUT the memory usage is still unreal. The reason I say unreal is because I watched it with the disconnected recordset and it never rose much above 20,000 KB. This process now uses 850,000 KB at the late end of the process. Do you have any additional ideas of what to do to lower that other than using the disconnected recordset?



CleaKO

"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

GeneralRe: How can I minimize a datatable's memory usage? Pin
kubben2-May-07 10:28
kubben2-May-07 10:28 

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.