I know this has been addressed before and I've read the archives, and implemented the suggestions, but it just isn't working, so I feel that I'm missing a piece somewhere. Since I'm a real neophyte when it comes to DTS jobs, I need some additional hand-holding through this, please.
I've created the job. I've created the dynamic property and connected it to my text file connection. Used the following code to create the file name with date appended to it.
When I click the refresh button, I get an error:
Error description: Invalid column prefix ": No table name specified unclosed quotation mark before the character string".
So, the name isn't getting the date appended to it and the file goes into the ftp site with just the name and will be overwritten the next time the job is run which isn't exactly what I need done.
Thanks in advance for any and all suggestions.
Margaret
è¿é
I've created the job. I've created the dynamic property and connected it to my text file connection. Used the following code to create the file name with date appended to it.
Code:
select '\\ttc-appserver1\DataEntryReviewReport\DataEntryReview_' +
convert(varchar(4), year(getdate())) +
case when len(month(getdate()))=1 then '0' end +
convert(varchar(2), month(getdate()))+
case when len(day(getdate())) = 1 then '0' end +
convert(varchar(2), day(getdate())) +
.csv'
When I click the refresh button, I get an error:
Error description: Invalid column prefix ": No table name specified unclosed quotation mark before the character string".
So, the name isn't getting the date appended to it and the file goes into the ftp site with just the name and will be overwritten the next time the job is run which isn't exactly what I need done.
Thanks in advance for any and all suggestions.
Margaret
è¿é