To send the data to the remote database

1.From a command prompt, change to your tutorial directory. For example,

>c:

>cd c:ntutorial

2.Enter the following statement at the command line to run the Message Agent against the consolidated database:

dbremote -c "dbn=hq;uid=dba;pwd=sql"

This command line assumes that the hq database is currently running on the default server. If the database is not running, you must supply a dbf parameter with the database file name instead of the dbn parameter.

For more information on dbremote options, see “The Message Agent” on page 292 .

3.Click Shutdown on the Message Agent window to stop the Message Agent when the messages have been sent. The Message Agent window displays the message Execution completed when all processing is complete.

Receive data at the remote database

To receive the insert statement at the remote database, you must run the

Message Agent, dbremote, at the remote database.

To receive data at the remote database

1.From a command prompt, change to your tutorial directory. For example,

>c:

>cd c:ntutorial

2.Enter the following statement at the command line to run the Message Agent against the field database:

dbremote -c "dbn=field;uid=dba;pwd=sql"

This command line assumes that the field database is currently running on the default server.

For more information on dbremote options, see “The Message Agent” on page 292 .

3.Click Shutdown on the Message Agent window to stop the Message Agent when the messages have been processed. The Message Agent window displays the message Execution completed when all processing is complete.

48

Page 66
Image 66
Sybase DC38133-01-0902-01 manual Receive data at the remote database, To send the data to the remote database