Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Parameters [Table of Contents] Chapter 13 Retrieving information with System
Procedures

Access Service User's Guide DirectConnect for AS/400

[-] Chapter 12 Accessing catalog information with CSPs
[-] sp_tables
[-] Usage

Usage

Results

sp_tables returns a list of database objects. Results are ordered by the following columns:

The lengths for varchar columns shown in the result set tables are maximums; the actual lengths depend on the target database. The following table shows the result set.

Result set for sp_tables

Column

Datatype

Description

TABLE_QUALIFIER

varchar(128)

Always NULL

TABLE_OWNER

varchar(128)

Collection name or NULL

TABLE_NAME

varchar(128)

Name of the object about which information is returned

TABLE_TYPE

varchar(128)

NOT NULL

One of the following:

  • 'SYSTEM TABLE'

  • 'TABLE'

  • 'VIEW'

REMARKS

varchar(254)

A description of the table or NULL


Parameters [Table of Contents] Chapter 13 Retrieving information with System
Procedures