Chapter 18. Command Referencefor Adaptive Server Enterprise
Argument Description
send_time
A string containing a time specification with the
followingmeaning:
If
frequency
is SEND EVERY,specifies a length
oftime between messages.
If
frequency
is SEND AT,specifies a time of day
atwhich messages will be sent.
Ifno frequency is specified, the Message Agent sends
messages,and then stops.
Seealso “sp_grant_remoteprocedure” on page 393
“sp_revoke_consolidateprocedure” on page 431
“GRANTCONSOLIDATE statement” on page 364
Description If the AdaptiveServer Enterprise server is acting as a remote database in a
SQLRemote installation, the single database above the current database
mustbe granted consolidated permissions using the sp_grant_consolidate
procedure.
Theconsolidated user is identified by a message system, identifying the
methodby which messages are sent to and received from the consolidated
user. The address-name must be a validaddress for the message-system,
enclosedin single quotes.
Thesp_grant_consolidate procedure is required for the remote database to
receivemessages, but does not by itself subscribe the remote user to any
data. Tosubscribe to data, a subscription must be created for the user ID to
oneof the publications in the current database.
Theoptional
frequency
argumentspecifies a frequency at which messages
aresent. The
send_time
argumentcontains a time that is a length of time
betweenmessages (for SEND EVERY) or a time of day at which messages
aresent (for SEND AT). With SEND AT,messages are sent once per day.
Ifno
frequency
argumentis supplied, the Message Agent processes
messages,and then stops. Inorder to run the Message Agent continuously,
youmust ensure that every user with remote or consolidated permission has
afrequency specified.
Example Thefollowing statement grants consolidated permissions to user
hq_user,using a file sharing system, sending messages to the address
hq_dir: No frequency arguments are specified, and the Message Agent
willrun in batch mode.
391