Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Reference » Views » Consolidated views

SYSREMOTETYPES consolidated view Next Page

SYSREMOTEUSERS consolidated view


Each row of the SYSREMOTEUSERS view describes a user ID with REMOTE permissions (a subscriber), together with the status of SQL Remote messages that were sent to and from that user.

The tables and columns that make up this view are provided in the SQL statement below. To learn more about a particular table or column, use the links provided beneath the view definition.

ALTER VIEW "SYS"."SYSREMOTEUSERS"
  as select u.user_name,r.consolidate,t.type_name,
    r.address,r.frequency, r.send_time,
    (if r.frequency = 'A' then null else if 
      r.frequency = 'P' then
      if r.time_sent is null then current timestamp
       else(select min(minutes(a.time_sent,
         60*hour(a.send_time)+ minute(seconds(a.send_time,59)))) from
         SYS.SYSREMOTEUSER as a where a.frequency = 'P' and
         a.send_time = r.send_time) 
       endif else if current date+r.send_time > 
        coalesce(r.time_sent,current timestamp) then
          current date+r.send_time else current date+r.send_time+1 endif
      endif endif) as next_send,
    r.log_send,r.time_sent,r.log_sent,r.confirm_sent,r.send_count,
    r.resend_count,r.time_received,r.log_received,
    r.confirm_received,r.receive_count,r.rereceive_count from
    SYS.SYSREMOTEUSER as r key join
    SYS.SYSUSERPERM as u key join
    SYS.SYSREMOTETYPE as t
See also