[quoted text, click to view] On Jun 14, 9:30 pm, Allan Mitchell <a...@no-spam.sqldts.com> wrote:
> Hello reflection,
>
> The two loops are seen as two completely seperate things and therefore the
> action will be anappendto the bottom of the sheet. To get every thing
> on the same line I would look to move things into 1 data flow if possible..
>
> --
>
> Allan Mitchell
http://wiki.sqlis.com|
http://www.sqlis.com|
http://www.sqldts.com|
http://www.konesans.com >
>
>
> > Hello.
> > While I found severalExceldestinationposts similar to mine, I
> > didn't see one with my particular issue.
> > Within the SSIS designer I have a simple data task with a two
> > ForEachLoops. The first foreach will write to myExcelDestination's
> > first two columns. The second foreach will correctly write a query
> > result to the third column however it writes in the rows below the
> > rows that the first column wrote to. I imagine there is a row-lock
> > of some sort that the first thread applies to theExceldestination
> > and then subsequent threads start at the next set of 'clean' rows.
> > This unfortunately makes myExceldocument look disjointed and more
> > difficult to visually inspect because I would like single complete
> > rows written from these two loops. Are there any recommendations
> > aboutExcelwrite-modes or do I need to refactor my loops into
> > possible one loop? Is this an inherent problem with working with
> >Exceldestinations as opposed to something else?
>
> > Any help would be much appreciated.- Hide quoted text -
>
> - Show quoted text -
I'm using SqlServer 2005. I've got an Excel Destination defined.
I'm trying to write data to a specific worksheet. The original
spreadsheet had an external query linked in where I'm trying to write
to.
If I go in and delete all the rows except the column headings, and try
to write, it blows up, balking saying it can't convert a
DT_DBTimestamp to DT_R8, and also gets VS_ISBroken.
If I take the spreadsheet, and do a "Refresh Date", and the data comes
back in, it will then write to the spreadsheet, but appends to the
bottom of the existing data.
So, I can't give it a clean slate, and I can't use appended data.
I tried using OpenDataSource for this, to delete the existing data
first, but it didn't like that at all.
Any pointers on this would be greatly appreciated, as I've been stuck
on it for a week.