psListTables

Description

     This program lists all the user tables in a database.

 

Syntax

psListTables -Sserver -Uusername -Ppassword -Ddatabase
-Wowner -Nname
-Ttime_out -Anumber_of_rows
-Foutput_file -Ooptions

 

Arguments

-S

Sybase Server Name

-U

Sybase User Name

-P

Sybase User Password

-D

Sybase Database

-W

List tables belonging to owner only

-N

List tables having pattern 'name' [%]

-T

Time out in seconds [3600]

-A

Number of rows to sample to compute average lengths for columns [0]

-F

Name of output table list file [standard output]

-O

Options

 

Options

a

List everything

n

List the caches bound to tables and indexes

c

List the columns in each table

d

List the defaults bound to columns

R

List the rules bound to columns or tables

m

List the image/text page chain for each table

i

List the indexes in each table

f

List the referential integrity constraints

k

List the sp_primary, sp_common & sp_foreign keys

t

List the triggers on each table

p

List the permissions on each table

r

Count the number of rows for each table

x

Give exact row counts for each table

u

Report user-defined datatypes [native datatypes]

z

Include comments in report

s

Get the system tables too

C

List tables in creation order (parent to child)

B

List tables in reverse creation order (child to parent)

 

Environment Variables Behind the Scenes

DSQUERY

When -S is not specified

SYB_USER

When -U is not specified

SYB_PASS

When -P is not specified

SYB_DATABASE

When -D is not specified

PS_SYSMSG_FILE

Name of the tool's messages file

 

Go to DBPowerSuite 7.9 List of Programs.


Updated: Thu Jun 18 21:12:26 2009