We've got several dts scheduled by Sql Server Agent on night-to-night basis.
order to understand better your request. It''s hard to provide information
without seeing the code. location: Alicante (ES)
"ngorbunov via SQLMonster.com" wrote:
> I have a table with the following structure:
>
> [code]
> CREATE TABLE [#TEST] (
> [sCalldate] [varchar]((20) NULL ,
> [sProject] [varchar] (20) NULL ,
> [dHours] numeric (10,4) NULL)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060401', 'A', 12)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060401', 'B', 0)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060401', 'C', 2)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060402', 'A', 2)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060402', 'B', 5)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060402', 'C', 4)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060403', 'A', 3)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060403', 'B', 5)
>
> INSERT [#TEST] (sCalldate,sProject, dHours)
> VALUES ('20060403', 'C', 1)
> [/code]
>
> I need to create an excel report that contains the calldate down the first
> column and the projects as cloumn headings across the top with the amount of
> hours worked each projects per day.
>
> I created a cross tab table with project codes across the top as columns. One
> major issue here is that project codes are created daily. One day I can have
> 3 next day I can have 5.
>
> So I have the table and the data populated the way I need, but I can't create
> the excel spreadsheet in a dts package (this report needs to be run on a
> nightly basis).
>
> Can anyone help me? Is there any way of accomplishing this?
>
> Thanks,
> Ninel
>
> --
> Message posted via SQLMonster.com
>
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-dts/200604/1