By: Tim Smith | Last Updated: 2014-07-07 | Comments | PowerShell
Problem / Solution
Sometimes we need to import a file only after we know that it's the right size or the right length. If the file falls short of a certain length or size, it may be because the file doesn't contain all the data or is in a corrupt state. By adding a measure to check the size and length prior to importing we can prevent data problems. In this video, we will look at how to check the number of rows and the file size using two different methods. This video will show how you can incorporate pre-import checks to your processing using either PowerShell or C# code.
Key Learning Items
- Verify length in PowerShell.
- Verify size in PowerShell (MB or GB).
- Verify length in C#.
- Verify size in C# (MB or GB).
Read Companion TipClick Here
Last Updated: 2014-07-07
About the author
View all my tips