Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
派生列に、デフォルトの文字列「Test」を使用して新しい列を追加しました。その文字列をUnicode文字列に変換する必要があったので、キャストしました- (DT_STR,20,1252)"Test"。
(DT_STR,20,1252)"Test"
「テスト」のままにしておくと、Unicodeフィールド(char(20))にデータを挿入できないため、SSISは文句を言います。SSISを実行すると、次のエラーが発生します。
型キャストの実行中にエラーが発生しました。
Integration Services のデータ型
非ユニコード文字列が必要な場合、式は次のようになります (DT_STR,20,1252)"Test"
Unicode に相当するものは次のようになります。(DT_WSTR,20)"Test"
(DT_WSTR,20)"Test"