Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transformation:merge allmost identical rows for output table
Message
From
20/12/2007 01:36:50
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Transformation:merge allmost identical rows for output table
Miscellaneous
Thread ID:
01276758
Message ID:
01276758
Views:
63
I need to transform Foxpro table to SQL Server table with merging all rows into one where all column values are the same except one . For this the only column with the different values , I want them also to be merged as coma or space delimited string. Surely, I may produce Foxpro script in 5 minutes which wil do that and be a pre-processor action before ADO.Net phase starts, but let's assume I am not familiar with Visual Foxpro.

It doesn't seem to be problem to unify conversion of many Fox tables to SQL Server with some simple mapping as generic C# program or SSIS packages, but what possible approaches could be when anything like that is required.

What I may think of ( without thinking much about performance and memory constraints )

1. DataReader for input and Dictionary . Populate Dictionary with merging, then dump Dictionary to output table
2. Stored procedure as post-processing after transforming all rows which does that cleaning.

Anything else ? Ideally, I'd like to avoid mixing stored procedures for transformation with C# classes.
Reply
Map
View

Click here to load this message in the networking platform