|
Why is this expression not working in SSIS Dervied COlumn Trans; right('000'+convert(nvarchar,columnname),12)
(comments are locked)
|
|
NVARCHAR isn't recognized in SSIS, in the derived column expression, try this:
NVARCHAR is Unicode in SQL Server, DT_WSTR in SSIS
(comments are locked)
|
|
The NVARCHAR needs a length after it. NVARCHAR(30) would accommodate a 30 character length string, use something at least the size of the column you are converting. Use
(comments are locked)
|
|
i tired but it shows this error TITLE: Microsoft Visual StudioError at Data Flow Task 1 [Derived Column [2987]]: The function "NVARCHAR" was not recognized. Either the function name is incorrect or does not exist. Error at Data Flow Task 1 [Derived Column [2987]]: Attempt to parse the expression "RIGHT("000"+CONVERT(NVARCHAR(255), [columnname] ),12)" failed and returned error code 0xC004708A. The expression cannot be parsed. It might contain invalid elements or it might not be well-formed. There may also be an out-of-memory error. Error at Data Flow Task 1 [Derived Column [2987]]: Cannot parse the expression "RIGHT("000"+CONVERT(NVARCHAR(255), [columnname] ),12)". The expression was not valid, or there is an out-of-memory error. Error at Data Flow Task 1 [Derived Column [2987]]: The expression "RIGHT("000"+CONVERT(NVARCHAR(255), [columnname] ),12)" on "output column "Derived Column 1" (3038)" is not valid. Error at Data Flow Task 1 [Derived Column [2987]]: Failed to set property "Expression" on "output column "Derived Column 1" (3038)". ADDITIONAL INFORMATION: Exception from HRESULT: 0xC0204006 (Microsoft.SqlServer.DTSPipelineWrap) BUTTONS: OKwhat is the datatype of the column you are converting?
Feb 12 '10 at 03:53 PM
Fatherjack ♦♦
source is nvarchar(30) I need to add leading zeros using Derived Transformation is SSIS.
Feb 12 '10 at 04:08 PM
InwoodGuy
(comments are locked)
|

