psCopyKeys

Description

     This program writes a script which copies the keys
on user tables that were created with sp_primarykey,
sp_foreignkey and sp_commonkey.

 

Syntax

psCopyKeys -Sserver -Uusername -Ppassword -Ddatabase
-Wowner -Nname
-starget_server -utarget_user -ptarget_pass -dtarget_db
-wtarget_owner
-FKorn_script -Rresults_file -Mmax_size_results_file

 

Arguments

-S

Sybase Server Name

-U

Sybase User Name

-P

Sybase User's Password

-D

Sybase Database

-W

Copy keys on tables belonging to 'owner' only

-N

Copy keys on tables whose name have pattern 'name' [!rs%]

-s

Target Sybase Server Name

-u

Target Sybase User Name

-p

Target Sybase User's Password

-d

Target Sybase Database

-w

Target owner of keys

-F

Name of output UNIX Korn shell script [standard output]

-R

psSQL results file [standard output]

-M

Maximum size in bytes of psSQL results file [0]

 

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