DataTable
The DataTable object represents a database table or the results of a query. In many ways, the DataTable class more closely corresponds to the Recordset class used in previous versions of ADO than the DataSet class does.
The following sections describe some of the DataTable’s most useful properties, methods, and events.
TableName
As its name implies, the TableName property simply returns the table’s name. This is not a complicated property but it is useful so it is listed here. The only surprising thing about this property is that you can set its value to change the DataTable’s name. The name is used as a key in the DataSet’s Tables collection, so if you give a DataTable the same name as another DataTable, the program raises an error. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access