ADOConnection.ListTables


public function ListTables

Prototype:

array ListTables(string database="%")

Parameters

database
the target database name (optional)

Description:

List the tables in a database. The connection must be opened.

Return value:

Returns an array of arrays containing table descriptions. In case it failes, it returns null.

Example
pragma warnings off

include DataBases.con

class Main {
	function Main() {
		var Connection=new ADOConnection();
		var DataSet=new ADODataSet(Connection);

		Connection.Open("Driver={SQL Server};Server=(local);Database=iadc;Uid=iadc;Pwd=iadc;");
		echo Connection.ListTables();

		echo Connection.ListColumns("sysobjects");

		Connection.Close();
		echo Connection.LastError();
	}
}