Run SQL Queries on DataTables, or similar, in .Net, without an RDBMS

Posted by FastAl on Stack Overflow See other posts from Stack Overflow or by FastAl
Published on 2010-06-09T20:09:19Z Indexed on 2010/06/09 20:12 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

I'd like to have a dataset or datatables, and be able to run SQL statements on them, without using any external RDBMS.

For Example, to take take 2 datatables in a dataset and just join them outright with a SQL statement and Where clause, the result being a new datatable? For example if I have 2 datatables, named People and Addresses in a dataset (that I built using code, not getting from a database .. pardon the old fashioned Join syntax):

dim dtJoined as DataTable = MyDataSet.RunSQLQuery ("Select * from People, Orders Where People.PersonID=Orders.OrdereID")

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET