Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to do cascading FoxPro queries in .NET
Message
From
04/03/2014 09:56:01
 
 
To
03/03/2014 14:30:58
General information
Forum:
ASP.NET
Category:
Migration
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01595691
Message ID:
01595735
Views:
37
How do I do that in Oledb? Well, creating separate command objects with the SQL is easy and running the command is easy, but how do you join them and have one build on the previous result, which will be a datatable, I believe. Or a Reader.
>
>TIA
Yes, it can be either a datatable or a reader.
There are several ways to join them. The best way will depend on the specifics of your data.
The simplest way is to create the final datatable and do for loops that scan the interim datatables and fill up the final datatable.
There are slicker, more elegant methods using LINQ or the one referenced below, but the for loops have always worked for me.
http://support.microsoft.com/kb/326080/en-us

As your conversion project evolves, you might find yourself having to merge .DBF data with data from MSSQL or MySQL.
The for loops are a good way to do that.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform