SelectTableCollection Class
Represents a collection of tables and subqueries in a
SelectStatement object.
In the following sample we retrieve a collection of SelectTables from an SqlSelectStatement object 'statement' and print them. For example, if statement represents the command
SELECT * FROM test.dept tDept,test.emp tEmp
the output of the sample would be the following:
test.dept tDept
test.emp tEmp
SelectTableCollection collection = statement.Tables;
foreach (SelectTable table in collection)
Console.WriteLine(table.ToString());
Dim collection As SelectTableCollection = statement.Tables
For Each table In collection
Console.WriteLine(table.ToString())
Next
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2