En package SSIS Je String type variable V2
dans la propriété d'expression j'écris suivant requête SQLexpression ssis comment convertir une déclaration SQL datetime?
"select * from mytable where date = " + @[System::StartTime]
Mais il me donne une erreur:
The data types "DT_WSTR" and "DT_DATE" are incompatible for binary operator "+". The operand types could not be implicitly cast into compatible types for the operation. To perform this operation, one or both operands need to be explicitly cast with a cast operator.
Attempt to set the result type of binary operation ""select * from table where date = " + @[System::StartTime]" failed with error code 0xC0047080.
Même moi, je l'ai également essayé avec (DT_WSTR) @[System::StartTime]
toujours pas de chance, un conseil?