Groups | Blog | Home
all groups > sql server dts > august 2007 >

sql server dts : SSIS utilitity


Nash
8/10/2007 12:00:00 AM
I have SSIS(DTS) using the dataflow OLE db which query the database to
extract information for actions done yestarday. In the sql statement
i'm using calling the function DATEADD(dd, -1, getdate()) to extract
the yestardays information on a date field.
This package sends information in excel format as the final
destination. Then i have a job which located the DTS package and
executes.
The trouble is when i run the job created from sql server agent it add
the data to the existing file making it double the size. How can i
make sure that the desitination file (excel) data does not get added
or even better get renamed with yestarday's date.

thanks
Francisco A. Gonzalez
8/10/2007 12:00:00 AM
Hi
There is a property call ExcelFilePath, in the excel connection, that you
can set to the value of a variable. This is the name of the excel file you
create.
So create a string variable, using a script assing the date to the variable
and then assign to the excel connection property the value of the variable
cheers


--

Francisco A. Gonzalez
fgonzalez@solidq.com



[quoted text, click to view]

Nash
8/10/2007 12:00:00 AM
On Aug 10, 12:11 pm, "Francisco A. Gonzalez" <fgonza...@solidq.com>
[quoted text, click to view]

Thanks for the quick response muich appreciated.

I have been knocking my head to understand how i'm going to "So create
a string variable, using a script assing the date to the variable
[quoted text, click to view]
AddThis Social Bookmark Button