Overview
Script task to calculate a checksum for a 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).
Configuration
To use this script, you would need to load it in COZYROC JavaScript Task. If you are using COZYROC SSIS+ 2.0 or later, after selecting the corresponding script type and opening the component editor, you can select the script from a dropdown list with the pre-built scripts. For COZYROC SSIS+ 1.9, you can download the JavaScript file and browse to it via the "Import JavaScript code" button.
File_Checksum_Task.jsKnowledge Base
COZYROC SSIS+ Components Suite is free for testing in your development environment.
A licensed version can be deployed on-premises, on Azure-SSIS IR and on COZYROC Cloud.