Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Emulating a Group by
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Emulating a Group by
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01186578
Message ID:
01186578
Views:
70
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
State of Florida, DCF
Next
Reply
Map
View

Click here to load this message in the networking platform