SSIS||How to get names of Header Columns of CSV file using Script Task?

preview_player
Показать описание
How to read header columns of CSV File using Script Task in SSIS?

Names of Header Columns: id,first_name,last_name,email,gender

using (StreamReader sr = new StreamReader
(Dts.Variables["User::FilePath"].Value.ToString()))
{
Dts.Variables["User::HeaderColumn"].Value = sr.ReadLine();
MessageBox.Show(Dts.Variables["User::HeaderColumn"].Value.ToString());
Рекомендации по теме
Комментарии
Автор

How to skip extra CSV header and read actual column header

nalipapaiah
visit shbcf.ru