You need to define the message types you will use for sending messages before you add remote users to your database.
SQL Remote supports a set of message links. The links currently supported include:
The links are implemented as DLLs on Windows 3.x, Windows 95, Windows NT, and OS/2. The Message Agent for NetWare, DOS and QNX supports the FILE link only, as a compiled library.
This section describes the message types supported by SQL Remote.
The Message Application Programming Interface (MAPI) is used in several popular e-mail systems, such as Microsoft Mail. SQL Remote supports the MAPI message system under Windows 3.x, Windows 95, and Windows NT.
To use SQL Remote and a MAPI message system, each database participating in the setup requires a MAPI user ID and address. These are distinct identifiers: the MAPI address is the destination of each message, and the MAPI user ID is the name entered by a user when they connect to their mail box.
Although SQL Remote messages may arrive in the same mail box as e-mail intended for reading, they do not show up in your e-mail inbox. SQL Remote sends application-defined messages, which MAPI identifies and hides when the mailbox is opened. In this way, users can use the same e-mail address and same connection to receive their personal e-mail and their database updates, yet the SQL Remote messages do not interfere with the mail intended for reading.
One exception to this is if a message is routed via the Internet, in which case the special message type information is lost. The message then does show up in the recipient's mailbox.
SQL Remote can be used even if you do not have a message system in place, by using the FILE message link.
The FILE message link is a file-sharing system. A FILE address for a remote user is a subdirectory into which all their messages are written. To retrieve messages from their "inbox", the user reads the messages from the directory containing their files. Return messages are sent to the address (written to the directory) of the consolidated database.
The FILE link addresses are typically subdirectories of a shared directory that is available to all SQL Remote users, whether by modem or on a local area network. Each user should have a registry entry or SQLREMOTE environment variable pointing to the shared directory.
You can also use the FILE link to put the messages in directories on the consolidated and remote machines. A simple file transfer mechanism can then be used to exchange the files periodically to effect replication.
The Vendor Independent Messaging system (VIM) is used in Lotus cc: Mail and Lotus Notes.
To use SQL Remote and a VIM message system, each database participating in the setup requires a VIM user ID and address. These are distinct identifiers: the VIM address is the destination of each message, and the VIM user ID is the name entered by a user when they connect to their mail box.
VIM messages do appear in your mailbox along with mail intended for reading.
The Simple Mail Transfer Protocol (SMTP) is used in Internet e-mail products.
To use SQL Remote and a SMTP message system, each database participating in the setup requires a SMTP user ID and address. These are distinct identifiers: the SMTP address is the destination of each message, and the SMTP user ID is the name entered by a user when they connect to their mail box.
SMTP messages do appear in your mailbox along with mail intended for reading.
To specify a message type for a database, you need to specify a message link, and also an address, under that link, for the publisher user ID of the database.
The publisher address at a consolidated database is used by the database extraction utility as a return address when creating remote databases. It is also used by the Message Agent to identify where to look for incoming messages for the FILE link.
The SQL statement to create a message type has the following syntax:
CREATE REMOTE MESSAGE TYPElink-name
ADDRESSaddress-string
where link-name is one of the message links supported by SQL Remote, and address-string is the publisher's address under that message link.
The SQL statement to alter the publisher's address for a message type has the following syntax:
ALTER REMOTE MESSAGE TYPElink-name
ADDRESSnew-address-string
The SQL statement to drop a message type has the following syntax:
DROP REMOTE MESSAGE TYPElink-name
You can create and alter message types in Sybase Central. The Message Type folder is inside the SQL Remote folder.
The address supplied with a message type definition is closely tied to the publisher ID of the database. This is discussed further in the following section.
Each message link has several parameters that govern aspects of its behavior. This section documents these parameters.
The message link control parameters are stored in the registry under Windows NT and Windows 95, and in SQLANY.INI under Windows 3.x.
The FILE message system uses the following control parameters:
The FILE section of the SQLANY.INI file (Windows 3.x) has the following entries:
[FILE]
Directory=path
Debug=yes | no
On NetWare, you should create a file named DBREMOTE.INI in the SYS:\SYSTEM directory to hold the directory setting.
The MAPI message system uses the following control parameters:
The MAPI section of the SQLANY.INI file (Windows 3.x) has the following entries:
[MAPI]
IPM_Send=yes | no
IPM_Receive=yes | no
Force_Download=yes | no
Debug=yes | no
The SMTP message system uses the following control parameters:
If all of the fields are set, or if only the Debug field is not set, the login window is not displayed.
The SMTP section of the SQLANY.INI file (Windows 3.x) has the following entries:
[SMTP]
smtp_host=smtp_host
smtp_address=smtp_address
pop3_host=pop3_host
pop3_userid=userid
pop3_password=password
Debug=yes | no
The VIM message system uses the following control parameters:
The VIM section of the SQLANY.INI file (Windows 3.x) has the following entries:
[VIM]
Path=path
Userid=userid
Password=password
Debug=yes | no
Receive_All = yes | no
Send_VIM_Mail = yes | no