all groups > sql server dts > june 2007 >
You're in the

sql server dts

group:

Newbie Excel destination writing question


Newbie Excel destination writing question reflection
6/14/2007 3:29:46 PM
sql server dts:
Hello.
While I found several Excel destination posts 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 my Excel Destination'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 the Excel destination
and then subsequent threads start at the next set of 'clean' rows.
This unfortunately makes my Excel document look disjointed and more
difficult to visually inspect because I would like single complete
rows written from these two loops. Are there any recommendations
about Excel write-modes or do I need to refactor my loops into
possible one loop? Is this an inherent problem with working with
Excel destinations as opposed to something else?

Any help would be much appreciated.
Re: Newbie Excel destination writing question Allan Mitchell
6/15/2007 4:30:35 AM
Hello reflection,

The two loops are seen as two completely seperate things and therefore the
action will be an append to 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

[quoted text, click to view]

Re: Newbie Excel destination writing question reflection
6/28/2007 5:04:33 PM
[quoted text, click to view]

Thanks for your help, I fully understand now.

Re: Newbie Excel destination writing question
7/5/2007 3:04:15 PM
[quoted text, click to view]

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.

AddThis Social Bookmark Button