While reading data from xls file, using oldedb as follows with no problem
OleDbCommand cmd = new OleDbCommand("SELECT * FROM [" + fileID + "]", oledbConn);
DataSet ds = new DataSet();
OleDbDataAdapter da = new OleDbDataAdapter(cmd);
da.Fill(ds);
But I want to extend the select statement to only select rows of a certain column that is not null WHERE … IS NOT NULL, what is that … suppose to be?
If you use the option
HDR=YESin your connection stringthen use the column title in the
WHEREclause to specify the column.If not, then use
F1...FNto specify the column.Select query for
HDR=NO(and first column):Select query for
HDR=YES: