Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Emulating a Group by
Message
 
À
18/01/2007 12:47:10
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01186578
Message ID:
01186753
Vues:
25
I'll check into that.

Richard


>>I am importing a text file (20 - 50,000 records) that gets FTP'ed down from a mainframe into a DataTable. Now, before I update the database with this data, I need to summarize it a bit.
>>
>>In VFP, I would do this:
>>
>>
>>Select Field1, Field2, sum(Amount) as newamount
>>from mycursor
>>into cursor tmpCursor
>>group by Field1, Field2
>>
>>
>>then do some other stuff that is more readily apparent.
>>
>>How can I mimic the above in .NET without sending the entire thing up to a temporary file on the server performing the action there then requesting it back into a DataTable?
>>
>>Any suggestions?
>>
>>Thanks
>>
>>Richard
>
>You can use Sql Server CE and a local DB instead of DataTable, then you can do whatever you want using SQL and SqlCeResultSet
State of Florida, DCF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform