where
database_name
isthe name of the database to take part in
SQLRemote replication.
Thesetwo lines set the current database to
database_name
,so that the
SQLRemote tables are created in the
database_name
database. The
SQLRemote tables are owned by the database owner.
3. Run the script against your Adaptive Server Enterprise server.
Changeto the directory containing the script file and enter the following
commandline (which should be entered all on one line) to run the script:
isql -S server-name -U login_id -P password -I ssremote.sql
-o logfile
where
server-name
isthe name of the Adaptive Server Enterprise,
login_id
and
password
correspondto a user with system administrator
permissionson the server who owns the database, and
logfile
isthe name
ofa log file to hold the log information from the script.
The
login_id
mustcorrespond to the name used by the Message
Agent. For more information, see “The Message Agent and replication
security”on page 269.
4. Inspect the log file to confirm that the tables and procedures were created
withouterror.
Thescript creates a set of SQL Remote system objects in the database.
The SQL Remote system objects
Thescript creates the following objects in the database:
SQLRemote system tables Aset of tables used to maintain
SQLRemote information. Thesetables have names beginning with sr_.
SQLRemote system views Aset of views that hold the SQL Remote
informationin a more understandable form. Theseviews have names
beginningwith sr_, and ending in s.
SQLRemote system procedures Aset of stored procedures used to
carryout SQL Remote configuration and administration tasks. These
procedureshave names beginning with sp_, indicating their system
managementroles.
Caution: Do not edit the SQL Remote system tables
Do not, under any circumstances, alter the SQL Remote system tables
directly. Doing so may corrupt the table and make it impossible for
SQLRemote to function properly. Use the SQL Remote system procedures
to carry out all system administration tasks.
22