Hi Cor
Thanks for your answer.
I have a application that has online connection
to SQL Server (SqlDataReader ...).
In this application, as a SQL Engineer, I use SQL Syntax.
First is I want SQL Server to select subsets of data,
I dont want to load it all into local Application Memory.
But the real problem is, I want to change application to
be able to run in a offline modus using XML files.
If I would be able to somehow create SqlDataReader from
DataSet and/or XML File, I dont have to change a lot within
the application. Data Syncronizing would not be a big deal.
So, I guess there is no solution to do this and I
have to change the whole application to use DataSet.
Than I am able to use both, online and offline.
Thanks anyway
Frank
"Cor Ligthert [MVP]" wrote:
Frank,
In C# there is not a Linq to XML solution, however what is wrong with the
dataset.
You get mostly an XML file in a dataset with
ds.readXML(path).
The dataset is a very optimized OO collection so I am very interested what
will be the problem?
Every other method will probably consume more memory and at least more
resources.
Cor
"Frank Uray" <Fr*******@discussions.microsoft.comschreef in bericht
news:E3**********************************@microsof t.com...
Hi all
On SQL Server tables I use SqlDataReader to query data
like "SELECT * FROM table".
Is there something similar for XML Files ?
I want to use SQL Syntax like "SELECT * FROM table" on
a XML file. After query I want to get something like SqlDataReader
based on Query to loop.
I do not want to use a DataSet. It should be more like streaming
and not loading the whole set into Memory.
Any ideas ?
Thanks for any comments.
Best regards
Frank