How can I read only first row from an Excel file with OleDbDataAdapter?
Posted
by user330564
on Stack Overflow
See other posts from Stack Overflow
or by user330564
Published on 2010-06-11T10:35:28Z
Indexed on
2010/06/11
10:42 UTC
Read the original article
Hit count: 166
Hi all.
Can anybody help me? How can I read only first row from an Excel file with OleDbDataAdapter?
I know how I can read all data from any spread sheet:
var dataAdapter = new OleDbDataAdapter("SELECT * FROM [" + sheetName + "$]", oledbConnection);
But I don't know how can I do this for one row.
© Stack Overflow or respective owner