Average: 3.5 (2 votes)


Overview

Script task to create checksum for file. The result is stored in package variable.


Setup

The script has the following parameters:

  • IsFileVariable - if true, input file name is contained in package variable. Otherwise it is file connection manager (Boolean).
  • FileVariable - input file variable (String).
  • File - input file connection manager (Connection).
  • Algorithm - file checksum algorithm. The choice is between MD5 and SHA1.
  • ResultVariable - checksum result variable (String).

Requirements

Depends on COZYROC Script Task Plus for implementing parameters user interface.


Library references

  • System
  • System.Data
  • Microsoft.SqlServer.ScriptTask
  • Microsoft.SqlServer.ManagedDTS
  • CozyRoc.SSISPlus

ScriptMain