Where does the Windows store the DataSet?

J

Jason Huang

Hi,

In our C# Windows application project, we have a DataSet resulting from the
query string.
I'm wondering where does the Windows XP store the DataSet, and what's the
size of the DataSet.
Thanks for help.


Jason
 
M

meh

Unless you are persisting it then it is resident in memory.
There are many ways to persist i.e.

ds = new DataSet("myData");
da = new SqlDataAdapter(cmd);

da.Fill(ds, "myData");
table = ds.Tables[0];
//Places the file in this app's bin directory
ds.WriteXmlSchema(Application.StartupPath + "\\bin\\" +
"myData.xsd");
ds.WriteXml(Application.StartupPath + "\\bin\\" +
"myData.xml");
cn.Close();
cn.Dispose();

hope this helps
meh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

about understanding 4
Problem binding DataSet to a ListBox 4
XML datetime 2
Problem on DataSet. 1
Problem with loading report 1
C# and Dataset from XML 2
nested query and dataset 3
.Net 2.0 SqlDataSource 4

Top