473,586 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Data loaded into DataSet

Hello all, I am wondering about the memory arrangement in C#.

If I am going to load, say, 20000 data rows from about 20 tables at once,
where will be the data stored in my machine? All save on RAM? Or a portion of
them is fetched to RAM for processing?

Thanks.
Nov 17 '05 #1
4 2213
Kenny,

The datarows are loaded in memory, where that is depends on your memory
management, however you cannot influence that in your dataset.

(By the way, probably nobody will find this a good idea what you try to do.
There is a lot to tell why that is not a good idea, however start thinking
about a not wanted power down of the computer or any other reason it goes
down).

I hope this helps,

Cor
Nov 17 '05 #2
Cor, Thanks much for your help.

So, how about... I construct a dataset containing tables like what I've put
in my SQL server, then if I wanna view/edit info of one of the records, I
just load the datarows from all tables which are related to it?

There is no need to load all data. All I need to do is construct the entire
table structure in my dataset...

(Please help me on this. Coz I am new to C# programming, and this is the
very first dataset programs I've ever dealt with.)

Thanks much.

"Cor Ligthert [MVP]" wrote:
Kenny,

The datarows are loaded in memory, where that is depends on your memory
management, however you cannot influence that in your dataset.

(By the way, probably nobody will find this a good idea what you try to do.
There is a lot to tell why that is not a good idea, however start thinking
about a not wanted power down of the computer or any other reason it goes
down).

I hope this helps,

Cor

Nov 17 '05 #3
Kenny,

Try to get only that what is needed by the client in your dataset.
And do needed updates as soon as possible.

However, there is impossible to give a "best" solution. In a webform you
will need another solution than on a PDA and/or on a windowsform.

In all circumstances is a dataset disconnected by the way, which means that
you are self responsable to do the updates.

What everybody almost forever forget is that as soon as you have filled the
dataset in the computer, somebody else can have changed that again. If the
filled data is few, than the change on that is of course much less.

This concept is complete different from the recordset approach.

I hope this gives some ideas

Cor

"Kenny" <Ke***@discussi ons.microsoft.c om> schreef in bericht
news:A4******** *************** ***********@mic rosoft.com...
Cor, Thanks much for your help.

So, how about... I construct a dataset containing tables like what I've
put
in my SQL server, then if I wanna view/edit info of one of the records, I
just load the datarows from all tables which are related to it?

There is no need to load all data. All I need to do is construct the
entire
table structure in my dataset...

(Please help me on this. Coz I am new to C# programming, and this is the
very first dataset programs I've ever dealt with.)

Thanks much.

"Cor Ligthert [MVP]" wrote:
Kenny,

The datarows are loaded in memory, where that is depends on your memory
management, however you cannot influence that in your dataset.

(By the way, probably nobody will find this a good idea what you try to
do.
There is a lot to tell why that is not a good idea, however start
thinking
about a not wanted power down of the computer or any other reason it goes
down).

I hope this helps,

Cor

Nov 17 '05 #4
Thanks much.

"Cor Ligthert [MVP]" wrote:
Kenny,

Try to get only that what is needed by the client in your dataset.
And do needed updates as soon as possible.

However, there is impossible to give a "best" solution. In a webform you
will need another solution than on a PDA and/or on a windowsform.

In all circumstances is a dataset disconnected by the way, which means that
you are self responsable to do the updates.

What everybody almost forever forget is that as soon as you have filled the
dataset in the computer, somebody else can have changed that again. If the
filled data is few, than the change on that is of course much less.

This concept is complete different from the recordset approach.

I hope this gives some ideas

Cor


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6063
by: Scott M. | last post by:
I have created a strongly typed dataset and populated it with data in my data layer. I have confirmed that the DataSet does, in fact contain my data and that there is a schema governing this data (obviously, since it is a strongly typed DataSet). I used the drag & drop method to create the .xsd file. I have created 2 methods in my data...
11
4219
by: Vinod I | last post by:
Hi Team, I am having a string as "System.Data.SqlDbType.Int". Now I want to convert this string type to actual type to use with my Command object Parameter Creation. How I will convert this string to the type object ?. Thanks in advance
3
6743
by: Thad | last post by:
I'm new to C# and I was trying to create a Crystal Report. I've designed a simple report and I've used several methods for attaching fields to the report at design time. I've used a DataSet that I've created by add new item, and I've used the add command and used an actual SQL statement, and I've used the OLEDB ADO and connected to my...
1
2784
by: Zachary Hartnett | last post by:
I was trying to write a routine this morning that would open a given assembly, walk the inheritance tree of classes in the assembly, and provide a list of classes in the assembly that inherit from DataSet. Here is a snippet from the routine I came up with: ------------------------------------------------------------...
7
6213
by: Sharon | last post by:
I have successfully loaded a DataSet object with a XML schema (XSD). Now I wish to populate the tables that was created in the DataSet. I have an XML file/string that contain all the needed data in the same format as the XSD (the XML file/string was created using this same schema). The XML file/string may contain data for a single table or...
3
1333
by: DwC | last post by:
Hi, We have a ms access database that we will be using to develop a website which would have fairly low usage levels. We have some experience with windows apps but not so much with asp.net projects. We have used ADO datasets previously for a windows application that we developed where the entire db was loaded into the dataset at the...
1
1675
by: scottin | last post by:
I setup the dataset, which is the datasource for a datagrid. When I originally fill the dataset, the data is loaded into dataset.tables(0). (dataset.tables(0).rows.count = 8) Then, if a row gets added to the table, I want to refresh the dataset. When I do so, the data is loaded into dataset.tables(1). (dataset.tables(0).rows.count = 0,...
4
1348
by: Scott | last post by:
Ok. Brand new at this so please give a little patience and help me on the baby steps. I'm rewriting something I did initially in PHP / MySql on a vb.net / mysql platform. Here's what I'm doing: 1) Data is pulled from the internet and stored to a CSV file 2) Data is loaded into the database with some changes 3) All sorts of data...
3
2342
by: Fred Chateau | last post by:
Any obvious reason here why data is not being loaded into the database? SqlDataAdapter dataAdapter = new SqlDataAdapter(sqlCommand); SqlCommandBuilder commandBuilder = new SqlCommandBuilder(dataAdapter); dataAdapter.Fill(dataSet, "POI_Entity"); DataRow dataRow = dataSet.Tables.NewRow(); dataRow = 1; dataRow =...
0
7911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.