psUpdateServer

Description

     This program writes a script which updates the statistics of
the tables in every database in a Sybase Adaptive Server.  By default,
this program updates statistics in all databases except for tempdb
and model.
     As in all DBPowerSuite, this program and its generated script will
exit with a 0 if all the update statistics commands executed successfully.
However, note that if you use the -Ox option, you will not be able to
retrieve the exit code of the generated script.

 

Syntax

psUpdateServer -Sserver -Uusername -Ppassword -Ddatabase_pattern
-FKorn_script
-Rresults_file -Mmax_results_file_size
-Ooptions

 

Arguments

-S

Sybase Server Name

-U

Sybase User Name

-P

Sybase User's Password

-D

Sybase Database Name Pattern [~tempdb ~model]

-F

Korn Shell Script Name

-R

psSQL Results File Name. [standard output]

-M

psSQL Maximum Size of Results File [1,000,000 bytes]

-O

Options

 

Options

s

Update statistics for system tables too

x

Execute script immediately [-F is required]

 

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.

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