|
Description |
This program copies table data from one database to another. This program |
|
Syntax |
psGCopyTableData -Sserver -Uusername -Ppassword -Ddatabase |
|
-S |
Sybase Server Name |
|
-U |
Sybase User Name |
|
-P |
Sybase User's Password |
|
-D |
Sybase Database |
|
-W |
Use tables belonging to 'owner' only [dbo] |
|
-N |
Use tables having pattern 'name' [!rs%] |
|
-s |
ODBC Data Source Name (or MS SQL Server DB name--Windows batch file) |
|
-v |
ODBC Server Name (or MS SQL Server name) |
|
-u |
ODBC User Name (or MS SQL Server user name) |
|
-p |
ODBC Password (or MS SQL Server password) |
|
-a |
ODBC Other Attributes (or MS SQL Server owner name) |
|
-J |
Target Data Source (only for ODBC target) |
|
-Q |
Target Server |
|
-R |
Target User Name |
|
-T |
Target Password |
|
-V |
Target Database |
|
-Y |
Target Owner |
|
-Z |
Target Other Attributes (optional only for ODBC target) |
|
-A |
Column Delimiter String [|] |
|
-X |
Row Terminator String [standard OS record terminator] |
|
-F |
Name of output Korn Shell script [standard output] |
|
-O |
Options |
|
S |
The originating data source is Sybase |
|
M |
The originating data source is Microsoft SQL Server |
|
O |
The originating data source is Oracle |
|
R |
The originating data source is Posgres |
|
Y |
The originating data source is MySQL |
|
G |
The originating data source is generic ODBC |
|
s |
The target data server is Sybase |
|
m |
The target data server is Microsoft SQL Server |
|
o |
The target data server is Oracle |
|
r |
The target data server is Postgres |
|
y |
The target data server is MySQL |
|
g |
The target data server is generic ODBC |
|
w |
Remove all leading and trailing white spaces |
|
n |
Make sure not-null columns will be not null. Turn nulls to zeros or spaces. |
|
N |
For null columns as well, turn the values into zeros or spaces. |
|
u |
Use Data-Direct ODBC drivers. |
|
k |
For Sybase sources, write a psSQL session instead of a psOSQL ODBC session. |
|
b |
For MS SQL Server sources, write a Windows batch file of bcp queryout commands instead of a Korn/psOSQL script. |
|
h |
For Oracle targets, use hex notation for SQLLoader terminators. |
|
8 |
For Oracle targets, use old 8 bit hex notation for SQLLoader terminators. |
|
d |
For Oracle targets, use SQLLoader direct path. Conventional path in the default. |
|
e |
For Oracle targets, for SQLLoader direct path, reenable disabled constraints. |
|
p |
For generic ODBC targets, do NOT use prepared statements. In any case, 'bind' with ODBC driver data type conversions . . . or . . . |
|
a |
For generic ODBC targets, use ad-hoc non-binding SQL inserts |
|
x |
For generic ODBC targets, REMOVE any 0x hex prefixes in binary column data |
|
q |
For generic ODBC targets, enclose binary data in quotes |
|
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. |
|
ODBC Requirements |
This program, psGCopyTableData, does not require ODBC drivers to be present to run. |
|
Schema Definition |
psGCopyTableData depends on you first defining the schema using Sybase. |
|
Database Location Independence |
The source and the target database can be on completely separated networks. This |
Go to DBPowerSuite 7.9 List of Programs.
Updated: Thu Jun 18 21:12:26 2009