How do I query a dataset?
From: 2 (2_at_2.2)
Date: 03/03/04
- Next message: Miha Markic [MVP C#]: "Re: This seems slow...Why???"
- Previous message: Kevin Yu [MSFT]: "RE: Why changing datasets shows fields"
- Next in thread: Miha Markic [MVP C#]: "Re: How do I query a dataset?"
- Reply: Miha Markic [MVP C#]: "Re: How do I query a dataset?"
- Reply: Earl: "Re: How do I query a dataset?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Mar 2004 19:32:46 +1100
Hello,
I get how to populate a dataset by querying a database server... but once
I've populated my dataset, say with several related tables, how can I then
select records from the dataset copy of data using SQL statements instead of
the database server itself?
In some cases I'd say this is preferable to hitting the database server
everytime a subset of data needs to be retrieved. Only suitable for small
amounts of static data of course.
As an example if I have a populated table of employee data in a dataset and
I want to populate a temp table with only those records where employee age >
60..... am I limited to filters or can I use SQL statements (which would
then mean no extra code if I decided to point back at the database server
instead of the dataset itself)....?
Hope this makes sense to you guys... cheers
- Next message: Miha Markic [MVP C#]: "Re: This seems slow...Why???"
- Previous message: Kevin Yu [MSFT]: "RE: Why changing datasets shows fields"
- Next in thread: Miha Markic [MVP C#]: "Re: How do I query a dataset?"
- Reply: Miha Markic [MVP C#]: "Re: How do I query a dataset?"
- Reply: Earl: "Re: How do I query a dataset?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|