DEPRECATED: Starting with SSIS+ 1.9, the .NET scripts are no longer maintained. Use the provided JavaScript alternative scripts instead.
Average: 3.7 (3 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