M
Matt
I have a multi table join...i.e.
string sql = "select customers.name, customers.id, address.street,
address.city
from customers, address
where customers.id = address.id"
then I execute the following code:
Dataset ds = new DataSet();
System.Data.SqlClient.SqlDataAdapter dataAdapter = new
System.Data.SqlClient.SqlDataAdapter();
dataAdapter.SelectCommand = new System.Data.SqlClient.SqlCommand(sql,
dbConnection);
int updateCount = dataAdapter.Fill(ds);
QUESTION: Although I can get the column names from the dataset there
seems to be no way to retrieve the ORIGINAL table names from the
database...
The SQL statement can be totally arbitrary, so the adapter has to tell
me what the table names were...Can this be done???
Thanks
Matt
(e-mail address removed)
string sql = "select customers.name, customers.id, address.street,
address.city
from customers, address
where customers.id = address.id"
then I execute the following code:
Dataset ds = new DataSet();
System.Data.SqlClient.SqlDataAdapter dataAdapter = new
System.Data.SqlClient.SqlDataAdapter();
dataAdapter.SelectCommand = new System.Data.SqlClient.SqlCommand(sql,
dbConnection);
int updateCount = dataAdapter.Fill(ds);
QUESTION: Although I can get the column names from the dataset there
seems to be no way to retrieve the ORIGINAL table names from the
database...
The SQL statement can be totally arbitrary, so the adapter has to tell
me what the table names were...Can this be done???
Thanks
Matt
(e-mail address removed)