dbTalk Databases Forums  

Creating new files each dts execution in SSIS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Creating new files each dts execution in SSIS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex
 
Posts: n/a

Default Creating new files each dts execution in SSIS - 06-27-2006 , 06:58 AM






Hi all,
Maybe my doubt is very simple, but i did't find references how to solve this
problem that in SQL 2000 I've used dynamic properties.
The objective is to create a text file destination based in a query. But
each time that the package runs I want to create a file based on the actual
date.
In SQL 2000 I solved this problem using a dynamic property task that set up
the Data Source package property with a simple query: select
'C:\filename_'+convert(varchar(8),getdate(),112)+' .dat'. In this way the DTS
runs each day and will create a file based in the actual date.
In SQL 2005 the dynamic properties task doesn't exist. I thought that this
kind of things could be very simple to configure in SSIS. Maybe it is, but I
have to confess that I couldn't find this in the documentation...
Any idea??
Thank you very much

Alexandre Calderaro

MSCDBA - Avanade Italy

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Creating new files each dts execution in SSIS - 06-28-2006 , 01:54 PM






Hello alex,

Quote:
Hi all,
Maybe my doubt is very simple, but i did't find references how to
solve this
problem that in SQL 2000 I've used dynamic properties.
The objective is to create a text file destination based in a query.
But
each time that the package runs I want to create a file based on the
actual
date.
In SQL 2000 I solved this problem using a dynamic property task that
set up
the Data Source package property with a simple query: select
'C:\filename_'+convert(varchar(8),getdate(),112)+' .dat'. In this way
the DTS
runs each day and will create a file based in the actual date.
In SQL 2005 the dynamic properties task doesn't exist. I thought that
this
kind of things could be very simple to configure in SSIS. Maybe it is,
but I
have to confess that I couldn't find this in the documentation...
Any idea??
Thank you very much
Alexandre Calderaro

MSCDBA - Avanade Italy


Expressions have replaced the Dynamic Properties Task, or rather removed
the need for it.

Set an expression on the connection string property of the file connection.

Some sample date expressions can be found here-

Expression Date Functions
(http://wiki.sqlis.com/default.aspx/S...Functions.html)




Reply With Quote
  #3  
Old   
Alex
 
Posts: n/a

Default Re: Creating new files each dts execution in SSIS - 06-28-2006 , 07:20 PM



Thanks Darren,

Your answer is very helpful, although I'd already find a similar expression.
Unfortunately I think that the books online for SQL 2005 is not yet very
easy to find the solution. I tried some expressions samples that did'nt
work...
Regards

Alexandre

"Darren Green" wrote:

Quote:
Hello alex,

Hi all,
Maybe my doubt is very simple, but i did't find references how to
solve this
problem that in SQL 2000 I've used dynamic properties.
The objective is to create a text file destination based in a query.
But
each time that the package runs I want to create a file based on the
actual
date.
In SQL 2000 I solved this problem using a dynamic property task that
set up
the Data Source package property with a simple query: select
'C:\filename_'+convert(varchar(8),getdate(),112)+' .dat'. In this way
the DTS
runs each day and will create a file based in the actual date.
In SQL 2005 the dynamic properties task doesn't exist. I thought that
this
kind of things could be very simple to configure in SSIS. Maybe it is,
but I
have to confess that I couldn't find this in the documentation...
Any idea??
Thank you very much
Alexandre Calderaro

MSCDBA - Avanade Italy



Expressions have replaced the Dynamic Properties Task, or rather removed
the need for it.

Set an expression on the connection string property of the file connection.

Some sample date expressions can be found here-

Expression Date Functions
(http://wiki.sqlis.com/default.aspx/S...Functions.html)




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.