Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
qman
Constraint Violating Yak Guru
442 Posts |
Posted - 2010-11-17 : 12:04:49
|
Does anyone see what is wrong with the following expression?(DT_WSTR, 50) @[User::excel_file] + getDate() + ".XLS"I am trying to append a date to a string variable, and then append a string file extention.My attempt to parse the expression is failing with a format issue.Thanks |
|
dataguru1971
Master Smack Fu Yak Hacker
1464 Posts |
Posted - 2010-11-21 : 13:16:59
|
You have to first convert the getdate() into a string... it is perhaps easier to create another variable for the resulting file name, and manipulate that variable in a script task where you can easily control the result and include error handling. Poor planning on your part does not constitute an emergency on my part. |
|
|
|
|
|