October 18, 2010 at 8:22 am
I have a similar senerio to that as in this link
http://bi-polar23.blogspot.com/2008/02/dynamic-flat-file-destinations.html
Here we don't have and ID associated with the Departmnet. But in my case I have the ID'S associated with that department and I want the id to be the header of the CSV AND department name to be at the file name extension.
Please help me how I can get along this situation.
Thanks,
Preensheen
October 18, 2010 at 9:34 am
I think you'll get much better responses to your questions if you post all the information required to answer your question. I'm not going to go read that blog to see what you're talking about.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
October 18, 2010 at 10:09 am
Alvin Ramard (10/18/2010)
I think you'll get much better responses to your questions if you post all the information required to answer your question. I'm not going to go read that blog to see what you're talking about.
OK, I having a data coming from different tables for different departments. I have to load the data to the csv and...should have different files for different departments. The department will have the deptname and dept id.
I should have the departname as the header in the csv and the deptid should go to the file name as an extention.
I am able to use the dept id and put it into a for each loop and am able to get different csv's. But not I am not able to map the header to that. Could anyone help me
hope this explains...
Thanks,
preensheen
October 18, 2010 at 10:15 am
I'm not sure what you mean by wanting to have the department name in the header. Do you mean as a row in the file?
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
October 18, 2010 at 10:23 am
Please provide some sample data, showing what your source looks like and what you would like to see in your destination. Your explanation is confusing.
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
October 18, 2010 at 10:32 am
Phil Parkin (10/18/2010)
Please provide some sample data, showing what your source looks like and what you would like to see in your destination. Your explanation is confusing.
My source looks this way
And Now My output should be two CSV'S..one should have sales information and other should have IT information. And also the CSV SHOULD HAVE A HEADER and the header should be the departname. And the csv file extention at the destination should have deptid..
Hope this is more clear..
Thanks,
PREENSHEEN
October 18, 2010 at 10:35 am
Your data is nowhere to be seen ...
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
October 18, 2010 at 11:09 am
preensheen (10/18/2010)
Phil Parkin (10/18/2010)
Please provide some sample data, showing what your source looks like and what you would like to see in your destination. Your explanation is confusing.My source looks this way
And Now My output should be two CSV'S..one should have sales information and other should have IT information. And also the CSV SHOULD HAVE A HEADER and the header should be the departname. And the csv file extention at the destination should have deptid..
Hope this is more clear..
Thanks,
PREENSHEEN
October 18, 2010 at 11:14 am
Anyone else following this?
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
October 18, 2010 at 11:17 am
By "IT SHOULD HAVE A HEADER", do you mean a row at the top that just says, "IT" (or whatever)? Does it also get column headers?
There are easy ways to do that, but they involve writing to the file directly, usually using a .NET assembly or something similar. Are you comfortable with writing to text files?
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
October 18, 2010 at 11:36 am
GSquared (10/18/2010)
By "IT SHOULD HAVE A HEADER", do you mean a row at the top that just says, "IT" (or whatever)? Does it also get column headers?There are easy ways to do that, but they involve writing to the file directly, usually using a .NET assembly or something similar. Are you comfortable with writing to text files?
I'm on the same page.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
October 18, 2010 at 12:34 pm
Hi All, Thanks a lot for the effort and help you provided.
I have resolved the issue. I have added a excute sql task inside the for each loop. The result of the for each was the parameter input to the excute sql task and the it gave me the deptname and which I stored in the variable and then added that variable to the header.
Thanks Again,
Preensheen
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply