D
David Sceppa
Mike,
When you issue a query like "SELECT CustomerID, CompanyName
FROM Customers", the name or the table/view/resultset is not
included with the results. By default, the DataAdapter will
assume a name of "Table". You can control this behavior by
setting the DataAdapter's TableMappings collection.
Adding the following line of code:
da.TableMappings.Add("Table", "Customers");
would have the desired effect. For more information, see the
documentation on TableMappings.
I hope this information proves helpful.
David Sceppa
Microsoft
This posting is provided "AS IS" with no warranties,
and confers no rights. You assume all risk for your use.
© 2003 Microsoft Corporation. All rights reserved.
When you issue a query like "SELECT CustomerID, CompanyName
FROM Customers", the name or the table/view/resultset is not
included with the results. By default, the DataAdapter will
assume a name of "Table". You can control this behavior by
setting the DataAdapter's TableMappings collection.
Adding the following line of code:
da.TableMappings.Add("Table", "Customers");
would have the desired effect. For more information, see the
documentation on TableMappings.
I hope this information proves helpful.
David Sceppa
Microsoft
This posting is provided "AS IS" with no warranties,
and confers no rights. You assume all risk for your use.
© 2003 Microsoft Corporation. All rights reserved.