Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I am trying to convert some MS Access queries to .NET.  These queries call other queries that call other queries, etc., sometimes up to five levels deep.  I am trying to avoid using subqueries because of the amount of testing that would be required, some of the lower level queries are used in multiple high level queries, and some of the lower level queries reference different data sources.

Is there a way to use datatables or some other way to do what Access does?

Posted
Updated 21-Nov-09 6:53am
v2

1 solution

Still not sure what you mean by ".Net". Do you mean SQL Server? If so, look into temporary tables (temporary, results stored on hard drive) and table variables (temporary, results stored in memory). You can insert the result of a query into one of those, then use that result in a later query.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900