psGAddRIConstraints

Description

     This program writes a SQL script which adds referential integrity
constraints.   This programs gets its definitions for a user's schema
from the system tables of a Sybase database.   Therefore, in order to
run this program, you need a up-and-running Sybase ASE server.
     Once the program retrieves the definitions, the program then generates a
SQL script for a Sybase database, a MS SQL Server database, an Oracle database
or a generic ODBC data source.   It is your choice.
     You run this program on your untouched production database.
You can use the SQL script the program generates later to reestablish
the RI constraints if you suspect that someone has removed them in the
interim.

 

Syntax

psGAddRIConstraints -Sserver -Uusername -Ppassword -Ddatabase
-Wowner -Nname -Foutput_SQL_script -Ooptions

 

Arguments

-S

Sybase Server Name

-U

Sybase User Name

-P

Sybase User's Password

-D

Sybase Database

-W

Use tables belonging to 'owner' only

-N

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

-F

Name of output SQL script [standard output]

-O

Options

 

Options

s

Generate a Sybase SQL script

m

Generate a Microsoft SQL script

o

Generate an Oracle SQL 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