|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to SELECT FROM In-Memory dataset in C# .NET?Experts:
I have built an in-memory dataset by parsing a flat file so that I can display the contents onto a datagrid. The Microsoft C# .NET System.Data.DataTable.Select() method allows me to select all rows that meet certain criteria (just like "WHERE") and to sort them (just like "ORDER BY"). I want to perform more analysis on this in-memory dataset such as SUM(), COUNT(*), MIN(), MAX() and possibly even JOIN. There has to be a way to do SQL commands 100% in-memory without writing this dataset to a database server. We already have the data in a dataset in-memory. How can we then use the power of SQL or C# to process the data further? Thank you. I think you have a compute() function for that.
-- Show quoteHide quote"BillJohns***@gmail.com" wrote: > Experts: > > I have built an in-memory dataset by parsing a flat file so that I can > display the contents onto a datagrid. > > The Microsoft C# .NET System.Data.DataTable.Select() method allows me > to select all rows that meet certain criteria (just like "WHERE") and > to sort them (just like "ORDER BY"). > > I want to perform more analysis on this in-memory dataset such as > SUM(), COUNT(*), MIN(), MAX() and possibly even JOIN. > > There has to be a way to do SQL commands 100% in-memory without writing > this dataset to a database server. We already have the data in a > dataset in-memory. How can we then use the power of SQL or C# to > process the data further? > > Thank you. > > Bill,
> The Microsoft C# .NET System.Data.DataTable.Select() method allows me According MSDN all this is supported by the select methods. For more details > to select all rows that meet certain criteria (just like "WHERE") and > to sort them (just like "ORDER BY"). > > I want to perform more analysis on this in-memory dataset such as > SUM(), COUNT(*), MIN(), MAX() and possibly even JOIN. see: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatacolumnclassexpressiontopic.asp -- Stoitcho Goutsev (100)
Other interesting topics
Memory leak in C#
Exception .net activex loaded with axhost C# Client browser, cookies enabled? Hashtable - Order of storage Is a cast to string always possible without exception? polish character.dbf VFP6.0 -CSharp VS2003 What is C# equivalent of Delphi's ClientDataSet ? Project fails to load after changing the name of the project folde Post XML from one C# web app to another ANN: ModelMaker Tools gives away free licenses ! |
|||||||||||||||||||||||