Home Forums SQL Server 2012 SQL 2012 - General Ascii Range 32 to 126 - How do I search if a column has characters out of this range RE: Ascii Range 32 to 126 - How do I search if a column has characters out of this range

  • Please ignore this .. This is just one extra step that I had to do in the SSIS package to make sure that I get an accurate count of how many records are there in the file.

    This was a very large file having 6 million records. Have to count to make sure we accounted for all the entries.

    So we can put this code inside a script object and then pass the value of [count] to a SSIS variable


    string TheFile = "S:\\MIS\\Provider NPI file\\Processed\\npidata_20050523-20161009.csv";int count = 0;using (System.IO.StreamReader sr = new System.IO.StreamReader(TheFile))
    {  while (sr.ReadLine() != null)   count++;}