Where does the Windows store the DataSet?

  • Thread starter Thread starter Jason Huang
  • Start date Start date
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
 
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
Store XML/XSD in SQL Server 2008 3
about DataSet 1
Problem binding DataSet to a ListBox 4
Problem on DataSet. 1
XML datetime 2
Problem with loading report 1
C# and Dataset from XML 2

Back
Top