Stores replication definitions, one per row.
Column |
Datatype |
Description |
---|---|---|
prsid |
int |
Primary Replication Server where this object was created |
objname |
varchar(255) |
Object name |
objid |
rs_id |
Object ID |
dbid |
int |
Unique ID for data server and database |
objtype |
char(1) |
One of the following object types:
|
attributes |
int |
Mask, can be one or more of the following:
|
ownertype |
char(1) |
Type of owner of this object:
|
crdate |
datetime |
Date and time created |
parentid |
rs_id |
Reserved for future use. |
ownerid |
rs_id |
ID of the user who created this object |
rowtype |
tinyint |
1 if row is replicated, 0 if not |
phys_tablename |
varchar(255) |
Primary table name – used when communicating with data server about this object |
deliver_as_name |
varchar(255) |
Name of the replicate table or stored procedure |
phys_objowner |
char(30) |
Name of the primary table owner, as specified in replication definition. Blank if the table owner is not specified. |
repl_objowner |
char(30) |
Name of the replicate table owner, as specified in replication definition. Blank if the table owner is not specified. |
has_baserepdef |
rs_id |
If this is not a base replication definition, the value of has_baserepdef matches that of objid for the base replication definition. Or, has the following value: 0x00 - Base replication definition |
minvers |
int |
Specifies the minimum version of a replication definition, and thus the Replication Server to which it can propagate. Can be:
|
version |
rs_id |
Uniquely identifies a replication definition version. |
active_inbound |
int |
Executor uses this column to decide which replication definition version to use. Executor uses the replication definition version whose value for the active_inbound column is 0. |
attributes2 |
int |
|
Replication Server may create a new replication definition version when you alter a replication definition. When that happens, Replication Server changes the name of the old replication definition version to a unique name with a “rs_drp” prefix. Replication Server treats replication definitions with names prefixed with “rs_drp” or “rs_in” as internal replication definitions.
Replication Server deletes an internal replication definition when the data associated with the replication definition is no longer in the replication system.
To exclude internal replication definitions from a query to the rs_objects table, add to the where clause of the query:
and objname not like ‘rs_drp%’ and objname not like ‘rs_in%’
For example, this query returns the name of all replication definitions created against the ling.authors primary table, and excludes the internal replication definitions:
select objname from rs_objects where prsid = 16777317 and dbid = 104 and phys_tablename = 'authors' and phys_objowner = 'ling' and objname not like 'rs_drp%' and objname not like 'rs_in%
Unique clustered index on (objname)
Unique index on (dbid, phys_tablename, phys_objowner, objtype, has_baserepdef, active_inbound)
Unique index on (objid)
Unique index on (version)