Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to do cascading FoxPro queries in .NET
Message
De
04/03/2014 09:56:01
 
 
À
03/03/2014 14:30:58
Information générale
Forum:
ASP.NET
Catégorie:
Migration
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01595691
Message ID:
01595735
Vues:
38
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform