0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

SSISのDataColumnWithの桁数について

Posted at

メモ

毎回忘れるので

フラットファイル接続マネージャー>「詳細」の
各列の「DataColumnWith」はバイト数で指定する。
全角(2バイト)だと想定する文字数の2倍を指定する。

サンプルデータ

以下のようなデータがあるとして、
氏名を切り捨て処理してみます。

image.png

SSISのDataColumnWith

CSVの氏名列を3バイト目で切り捨てて、
CSVとして出力するようにします。

image.png

エラーの処理も忘れずに。

image.png

結果

実行して出来上がるデータは以下の通り。
苗字の2文字(4バイト)は、3バイト切り捨てのため1文字だけになっています。
「林」は後ろの半角スペースも含めて、3バイトとなっています。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?