psGCheckRules

Description

     This program checks whether your tables' columns violate their
check constraints and rules.   If you are concerned about the integrity
of your data, this program as well as psGCheckRIConstraints are programs
which confirm or deny your suspicions.
     Bad data can enter your tables in many ways.   People can drop
the constraints.   Bulk copy operations ignore constraints.   And Mother
Nature herself can send a thunderbolt to corrupt the disk itself.
dbcc checks for acts of Mother Nature.  psGCheckRIConstraints and
psGCheckRules check for evil deeds done by users.

 

Syntax

psGCheckRules -Sserver -Uusername -Ppassword -Ddatabase
-Wowner -Nname -Vmax_violations_to_display
-Ooptions

 

Arguments

-S

Source Sybase Server Name

-U

Source Sybase User Name

-P

Source Sybase User Password

-D

Source Sybase Database

-W

Check tables owned by 'owner' only [-U]

-N

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

-V

Display up this many violations per table [50]

-F

Name of output SQL script [standard output]

-O

Options

 

Options

s

Generate a Sybase SQL isql script

m

Generate a Microsoft SQL isql script

o

Generate an Oracle SQL*Plus script

g

Generate an ODBC SQL script

 

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