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 |
pssheba
Yak Posting Veteran
95 Posts |
Posted - 2008-11-12 : 11:28:56
|
Hello everyoneIn the "Data flow" pane of a ssis project inside "Derived column" transformation i want to add an expression to a derived column. This is the expression:"convert(nvarchar,getdate(),112)" and this is the error message i get:"attempt to find the input column name nvarchar failed".The above expression works fine with t-sql but unfotunately fails with SSIS.How can i translate it to ssis ? |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-12 : 11:37:11
|
try this(DT_WSTR)GETDATE()can i ask why you're trying to convert date to varchar? its certainly not a good idea to change datatype like this. |
 |
|
pssheba
Yak Posting Veteran
95 Posts |
Posted - 2008-11-13 : 03:48:10
|
quote: Originally posted by visakh16 try this(DT_WSTR)GETDATE()can i ask why you're trying to convert date to varchar? its certainly not a good idea to change datatype like this.
Thanks. I tried and recieved an error message saying:"invalid token or incomplete token" |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-13 : 10:23:54
|
what about this?(DT_WSTR,30)GETDATE() |
 |
|
pssheba
Yak Posting Veteran
95 Posts |
Posted - 2008-11-13 : 10:31:31
|
quote: Originally posted by pssheba
quote: Originally posted by visakh16 try this(DT_WSTR)GETDATE()can i ask why you're trying to convert date to varchar? its certainly not a good idea to change datatype like this.
Thanks. I tried and recieved an error message saying:"invalid token or incomplete token"
Hi,i'm building a unique id composed of date+phone |
 |
|
|
|
|