![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
#3
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
#4
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
#5
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
#6
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
#7
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
#8
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
#9
| |||
| |||
|
|
I am trying to build a DTS package that exports data from SQL Server to a csv file. I am trying to use the Dynamic Properties Task to change the filename, but it is not working as expected. I have the Source (SQL Server) transforming to the Text File and the Dynamic Properties Task is set as follows, Destination Property: DataSource (of Text file) Source Type: Query Source Value: SELECT '\\Swvtc06\inetpub\intranet\logs\Tracking\Intranet Tracking_' + CAST(DATEPART(yyyy,GetDate()) as varchar(4)) + RIGHT('00'+CAST(DATEPART(mm,GetDate()) as varchar(2)),2) + RIGHT('00'+CAST(DATEPART(dd,GetDate()) as varchar(2)),2) + '.csv' The problem I am having is that the filename is not being changed as I expect it to... the query works, it returns the entire string for the filename. Thanks, Drew |
![]() |
| Thread Tools | |
| Display Modes | |
| |