psGDeleteRuleViolators

Description

     This program writes SQL script dropping rows from tables when they
violate their check constraints or rules.
     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.
Before you run this program, you can just check if any constraints are
violated by running psGCheckRules.

 

Syntax

psGDeleteRuleViolators -Sserver -Uusername -Ppassword -Ddatabase
-Wowner -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%]

-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