ssis パッケージにはString type variable V2
式プロパティがあり、次の SQL クエリを書いています。
"select * from mytable where date = " + @[System::StartTime]
しかし、それは私にエラーを与えています:
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.
私も試してみましたが、(DT_WSTR) @[System::StartTime]
まだ運がありません。アドバイスはありますか?