R
Ranier Dunno
Hi,
Is there any way of telling a DataAdapter to retrieve
only the first column from a table, if the name of the
column is not known? I'd like to be able to write
something like:
string cmdTxt = string.Format("SELECT <Column_1> FROM
[MyTable]");
OleDbDataAdapter adapter = new OleDbDataAdapter(cmdTxt,
conn);
DataTable table = new DataTable();
adapter.Fill(table);
Any help would be greatly appreciated!
Regards,
Ranier.
Is there any way of telling a DataAdapter to retrieve
only the first column from a table, if the name of the
column is not known? I'd like to be able to write
something like:
string cmdTxt = string.Format("SELECT <Column_1> FROM
[MyTable]");
OleDbDataAdapter adapter = new OleDbDataAdapter(cmdTxt,
conn);
DataTable table = new DataTable();
adapter.Fill(table);
Any help would be greatly appreciated!
Regards,
Ranier.