I have a SQL database, where I need to join 8 different tables (and perform different levels of grouping) and export a delimited text file. It is basically an extract used to merge into a participant statement at an external printing vendor.
For each person, a set of records will be exported in the following format (each row to have multiple fields delimited with a pipe symbol):
H - Header row
A - Account header
T - Account transaction details (multiple rows)
S - Account summary
F - Footer row
Each person may have multiple accounts, so the A-T-S section will repeat within each person for each account.
Can someone recommend a good tool to use for such a data extract? While Crystal Reports is great for statements, it does not seem to work well for data exports (especially delimited files that have long fields). With all the grouping and different row types for each person, I fear it may be difficult to do with straight Transact-SQL.
Thanks.
For each person, a set of records will be exported in the following format (each row to have multiple fields delimited with a pipe symbol):
H - Header row
A - Account header
T - Account transaction details (multiple rows)
S - Account summary
F - Footer row
Each person may have multiple accounts, so the A-T-S section will repeat within each person for each account.
Can someone recommend a good tool to use for such a data extract? While Crystal Reports is great for statements, it does not seem to work well for data exports (especially delimited files that have long fields). With all the grouping and different row types for each person, I fear it may be difficult to do with straight Transact-SQL.
Thanks.