PC Review


Reply
Thread Tools Rate Thread

DataSet as Data Source?

 
 
Kevin Spencer
Guest
Posts: n/a
 
      13th Jul 2003
I'm working on a client-server application with which I would like to use a
DataSet as a Data Source. That is, I plan to create an XML DataSet file,
which I can then use as a relational database of sorts. I suppose what I'm
looking for is a Data Provider which can interact with an XML DataSet file,
executing queries of various sorts. Is there an existing OLE DB data
provider out there somewhere that can interact with an XML file created from
an ADO.Net DataSet, or do I have to write one for myself?

Thanks,

Kevin Spencer
..Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things


 
Reply With Quote
 
 
 
 
Oisin Grehan
Guest
Posts: n/a
 
      14th Jul 2003
Hi Kevin,


It sounds like you want to run standard relational SQL queries against an
XML source. While you can't do this directly, you can use the
XmlDataDocument class for similar behaviour. This lets you load an XML
document and expose a DataSet interface and vice-versa. Each hierarchical
level in your XML can be exposed as a DataTable using DataRelations (with
Nested set to true) and you can then run traditional Sql against this. In
reality it can get a bit hairier than it sounds, so get familiar with these
elements, particularly DataRelations and Xml Schema before you dive in too
deep.

Hope this helps,

- Oisin

"Kevin Spencer" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I'm working on a client-server application with which I would like to use

a
> DataSet as a Data Source. That is, I plan to create an XML DataSet file,
> which I can then use as a relational database of sorts. I suppose what I'm
> looking for is a Data Provider which can interact with an XML DataSet

file,
> executing queries of various sorts. Is there an existing OLE DB data
> provider out there somewhere that can interact with an XML file created

from
> an ADO.Net DataSet, or do I have to write one for myself?
>
> Thanks,
>
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> http://www.takempis.com
> Big things are made up
> of lots of little things
>
>



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      15th Jul 2003
Thanks Oisin. That is exactly what I want to do. And, although I'd love to
write an OLE DB driver to do that myself, I think your solution falls more
within the bounds of my time constraints!

--
HTH,

Kevin Spencer
..Net Developer
Microsoft MVP
http://www.takempis.com
Big things are made up
of lots of little things

"Oisin Grehan" <(E-Mail Removed).> wrote in message
news:#(E-Mail Removed)...
> Hi Kevin,
>
>
> It sounds like you want to run standard relational SQL queries against an
> XML source. While you can't do this directly, you can use the
> XmlDataDocument class for similar behaviour. This lets you load an XML
> document and expose a DataSet interface and vice-versa. Each hierarchical
> level in your XML can be exposed as a DataTable using DataRelations (with
> Nested set to true) and you can then run traditional Sql against this. In
> reality it can get a bit hairier than it sounds, so get familiar with

these
> elements, particularly DataRelations and Xml Schema before you dive in too
> deep.
>
> Hope this helps,
>
> - Oisin
>
> "Kevin Spencer" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > I'm working on a client-server application with which I would like to

use
> a
> > DataSet as a Data Source. That is, I plan to create an XML DataSet file,
> > which I can then use as a relational database of sorts. I suppose what

I'm
> > looking for is a Data Provider which can interact with an XML DataSet

> file,
> > executing queries of various sorts. Is there an existing OLE DB data
> > provider out there somewhere that can interact with an XML file created

> from
> > an ADO.Net DataSet, or do I have to write one for myself?
> >
> > Thanks,
> >
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > http://www.takempis.com
> > Big things are made up
> > of lots of little things
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while filling the dataset where the data source is a .CSV file simran2102@gmail.com Microsoft ADO .NET 2 20th Aug 2007 06:25 AM
Re: how to use table in a dataset as data source for combobox? Rad [Visual C# MVP] Microsoft VB .NET 3 6th Dec 2006 05:37 AM
Problem with a readonly table in a dataset (data source) in VS 200 =?Utf-8?B?Q2F0aHk=?= Microsoft ADO .NET 2 21st Aug 2006 02:39 PM
Dataadapter update data source with dataset in C# Bassem Microsoft ADO .NET 1 27th Nov 2003 02:39 PM
Saving data in DataSet from one source in another Przemo Microsoft ADO .NET 2 28th Jul 2003 12:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:57 AM.