![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have experiencing an issue where I am using a Dynamic Properties Task to set the Data Source of an Excel output file in a SQL Server DTS package. The Dynamic Properties Task uses a query to return the value and looks like this: select 'E:\Reports\Accounting\Daily\SalesReport_' + CONVERT(varchar, MONTH(GETDATE())) + '_' + CONVERT(varchar, DAY(GETDATE())) + '.xls' This works fine unless the length of the value returned is longer than 75 characters. I see that by doing a newsgroup search that other people are seeing this as well. I just tried the following, and it worked, so I thought I would pass it on: select CONVERT(varchar(250), 'E:\Reports\Accounting\Daily\SalesReport_' + CONVERT(varchar, MONTH(GETDATE())) + '_' + CONVERT(varchar, DAY(GETDATE())) + '.xls') Seems like a pretty good workaround for a clear bug in DTS. |
![]() |
| Thread Tools | |
| Display Modes | |
| |