O'Reilly logo

Visual Basic® .NET Database Programming by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required