psDropTables

Description

     This program drops user tables in a database.  System
tables are not touched.  Before you drop the tables, you
might have to first consider dropping the referential
integrity constraints.  You can drop them with the -Or option
or by running psDropRIConstraints.

 

Syntax

psDropTables -Sserver -Uusername -Ppassword -Ddatabase
-Wowner -Nname
-FKorn_script -Rresults_file -Mresults_file_max_size
-Ooptions

 

Arguments

-S

Sybase Server Name

-U

Sybase User Name

-P

Sybase User Password

-D

Sybase Database

-W

Drop tables belonging to 'owner' only

-N

Drop tables having pattern 'name' [!rs%]

-F

Name of output Korn shell script [standard output]

-R

psSQL results file name [standard output]

-M

psSQL initial max size in bytes for results file [0]

-O

Options

 

Options

r

Drop referential integrity constraints first

t

Drop triggers explicity first

k

Drop sp_primarykeys, sp_commonkeys and sp_foreignkeys first

 

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