SQL_GET_TABLES

Lists all database tables.

Syntax

SQL_GET_TABLES

The agent writes the result to a report. Exactly one line is output per table. If a schema is available, it is written in front of the table name. Schema and table are separated by a dot.

Examples

All tables of the NORTHWIND database are retrieved.

SQL_GET_TABLES;

Result shown in the report:

dbo.Categories
dbo.CustomerCustomerDemo
dbo.CustomerDemographics
dbo.Customers
dbo.Employees
dbo.EmployeeTerritories
dbo.Order Details
dbo.Orders
dbo.Products
dbo.Region
dbo.Suppliers
dbo.Territories

See also: