Re: Datasets fundamental
- From: "Cowboy \(Gregory A. Beamer\)" <NoSpamMgbworld@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 Jun 2006 07:04:47 -0500
Answers inline with queries.
<shyamspandey@xxxxxxxxx> wrote in message
news:1149677795.725421.249110@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi there!
I'm very new to dot net envirnoment and have little bit understanding.
Due to some reason, I need to work straight forward on datasets and
webservices and xml. I don't have much hold on the same but would
appreciate if someone put lights on the given questions:
a) How datasets which has passed by value can be retreived from cache?
Default ASp.NET caching? Not really a viable option in a web service
scenario, as you are talking a stateless environment. You could cache
commonly used items, if you can identify them, but in most cases the DB
engine is better at caching than you. Am I missing somethign?
b) How would one know whether datasets is containing any records or
not? Is there any way to test the same? Please let me know via coding.
Single table dataset:
if(dataSet.Tables[0].Rows.Count != 0)
{
//Do something, as there are records
}
c) How long datasets will store in server memory?
This is a "it depends" answer, as you never know when garbage collection
clears things out. From the standpoint of access, unless you cache them or
stick them somewhere, they are gone after they are passed on.
d) How to create a dataset and publish it in cache?
For a web service, you can cache with
Cache["nameOfDataSet"] = ds;
I am still not sure what you are caching, or where ... much less why.
Beside this, I do have other questions which will not fall into this
group like :
1) How to map datasets records to update a MYSQL Server?
If you use the standard ADO.NET methods, you link up the SELECT, INSERT,
UPDATE and DELETE queries to your DataAdapter and call Update(). As long as
you either have a query or a stored procedure (I think MySQL has this in its
latest incarnation).
--
Gregory A. Beamer
*************************************************
Think Outside the Box!
*************************************************
.
- Follow-Ups:
- Re: Datasets fundamental
- From: Newkid
- Re: Datasets fundamental
- References:
- Datasets fundamental
- From: shyamspandey
- Datasets fundamental
- Prev by Date: Datasets fundamental
- Next by Date: Re: Good way to do lookups
- Previous by thread: Datasets fundamental
- Next by thread: Re: Datasets fundamental
- Index(es):
Relevant Pages
|
Loading