473,508 Members | 4,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stupid dataset question...

KC
From what little I understand about them, datasets are like mini-databases.
If this is so, can I query tables in that dataset? What kind of object would
I hold the result set in?
Ken
Nov 20 '05 #1
8 979
Ken,
You can use either a DataView or DataTable.Select to query tables in a
DataSet.

The DataView is an object in its own right, If you use a For Each on a
DataView it will return DataRowView objects, while DataTable.Select returns
an array of DataRow objects.

For details on this and other exciting questions on ADO.NET (Datasets) I
would recommend Sceppa's book, which is a good tutorial on ADO.NET as well
as a good desk reference once you know ADO.NET. David Sceppa's book is
"Microsoft ADO.NET - Core Reference" from MS press.

Hope this helps
Jay

Hope this helps
Jay

"KC" <yo*@dontneed.this> wrote in message
news:ea*************@TK2MSFTNGP12.phx.gbl...
From what little I understand about them, datasets are like mini-databases. If this is so, can I query tables in that dataset? What kind of object would I hold the result set in?
Ken

Nov 20 '05 #2
Hi,

http://msdn.microsoft.com/library/de...electtopic.asp

Ken
---------------------

"KC" <yo*@dontneed.this> wrote in message
news:ea*************@TK2MSFTNGP12.phx.gbl:
From what little I understand about them, datasets are like
mini-databases.
If this is so, can I query tables in that dataset? What kind of object
would
I hold the result set in?
Ken


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #3
Come on Jay, tell me, Just how much is David paying you to plug his book ?

;-)

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:O3*************@tk2msftngp13.phx.gbl...
Ken,
You can use either a DataView or DataTable.Select to query tables in a
DataSet.

The DataView is an object in its own right, If you use a For Each on a
DataView it will return DataRowView objects, while DataTable.Select returns an array of DataRow objects.

For details on this and other exciting questions on ADO.NET (Datasets) I
would recommend Sceppa's book, which is a good tutorial on ADO.NET as well
as a good desk reference once you know ADO.NET. David Sceppa's book is
"Microsoft ADO.NET - Core Reference" from MS press.

Hope this helps
Jay

Hope this helps
Jay

"KC" <yo*@dontneed.this> wrote in message
news:ea*************@TK2MSFTNGP12.phx.gbl...
From what little I understand about them, datasets are like

mini-databases.
If this is so, can I query tables in that dataset? What kind of object

would
I hold the result set in?
Ken


Nov 20 '05 #4
Terry,
Not nearly enough :-)

But Hey I plug Fowler's book an awful lot also!

I just find it the easiest read to learn ADO.NET!

Jay

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:uY***************@tk2msftngp13.phx.gbl...
Come on Jay, tell me, Just how much is David paying you to plug his book ?

;-)

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

<<snip>>
Nov 20 '05 #5
The Framework and its nuances in total are both immense and complex (
though well thought out ) , when I first started with .NET I really had no
Idea how huge it really is, I had this opinion that I would be able to learn
it's main parts in a couple of weeks, and be really good within six months.

Considering the sheer scope of knowledge one needs JUST to get a reasonable
understanding of what's possible, let alone be proficient in most area's
it's really amazing that good .NET people are not mostly millionaires
--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
Terry,
Not nearly enough :-)

But Hey I plug Fowler's book an awful lot also!

I just find it the easiest read to learn ADO.NET!

Jay

"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:uY***************@tk2msftngp13.phx.gbl...
Come on Jay, tell me, Just how much is David paying you to plug his book ?
;-)

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

<<snip>>

Nov 20 '05 #6
Hi KC,

In addition to the others, a dataset is definitely not a mini database.

It can hold data from a database in memory where it reflects as well a lot
of the structure from the selected data from databases (it can be more than
one).

That dataset can as well be transported over the internet and as well saved
on disk in a XML format. However not be accessed in a database way, it is
only read or write of the whole dataset.

To process the data in a dataset are many methods, you can databind it, and
select the rows, filter rows, loop trough rows, add columns, and delete
columns, however only in memory.

Just a little addition.

Cor
Nov 20 '05 #7
KC
Much Thanks!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:O3*************@tk2msftngp13.phx.gbl...
Ken,
You can use either a DataView or DataTable.Select to query tables in a
DataSet.

The DataView is an object in its own right, If you use a For Each on a
DataView it will return DataRowView objects, while DataTable.Select returns an array of DataRow objects.

For details on this and other exciting questions on ADO.NET (Datasets) I
would recommend Sceppa's book, which is a good tutorial on ADO.NET as well
as a good desk reference once you know ADO.NET. David Sceppa's book is
"Microsoft ADO.NET - Core Reference" from MS press.

Hope this helps
Jay

Hope this helps
Jay

"KC" <yo*@dontneed.this> wrote in message
news:ea*************@TK2MSFTNGP12.phx.gbl...
From what little I understand about them, datasets are like

mini-databases.
If this is so, can I query tables in that dataset? What kind of object

would
I hold the result set in?
Ken


Nov 20 '05 #8
"KC" <yo*@dontneed.this> schrieb
From what little I understand about them, datasets are like
mini-databases. If this is so, can I query tables in that dataset?
What kind of object would I hold the result set in?


Hint: microsoft.public.dotnet.framework.adonet
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #9

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

Similar topics

119
4509
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
2
13042
by: JS | last post by:
I'm trying to create a data layer and having problems returning a DataSet from my code that's in a class module. Please forgive me. I'm new to C# (VB'er). I decided to create my data layer in...
15
2227
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
3
1402
by: MadCrazyNewbie | last post by:
Hey Group, Probably a Stupid question i know but, what is the difference between a datagrid and Dataview? Ta MCN
22
25548
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
6
1597
by: Adam Smith | last post by:
I have posted this and similar questions repeatedly and can't even raise a single response. I am being led to believe that this then 'Must be a stupid question' although people say that there is no...
9
990
by: Brian | last post by:
I am having a heck of a time trying to refresh data in a combobox. I have a combo box that periodically needs to have its bound data refreshed. I can refresh the data, but every time I refresh it...
2
920
by: YYZ | last post by:
I am using Data for the first time with VB.Net, and it's in an odd way, so that makes it more strange. I have created a dataset based on a simple SELECT * FROM Table WHERE 1=0 -- I do that...
3
856
by: Tony K | last post by:
I had a random thought today. Is it possible to make a complete application with several forms that contain databound info such as textboxes or dataGridViews and use 1 and only 1 dataset for the...
0
7228
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,...
0
7393
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...
1
7058
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...
0
7502
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...
0
5635
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
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...
0
4715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
426
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...

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.