psGAddCheckConstraints

Description

     This program writes a SQL which when run, adds check constraints
to the tables in a database.  Though the program reads the Sybase system tables
for the constraint information, the program can generate a SQL script
for a number of different brands of databases including Oracle.

 

Syntax

psGAddCheckConstraints -Sserver -Uusername -Ppassword -Ddatabase
-Wowner -Nname -Foutput_sql_script -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