Replication Server supports replication of the bigdatetime and bigtime datatypes included with Adaptive Server. You can replicate these datatypes to replicate databases and warm standby databases by specifying the datatypes in replication definitions, function replication definitions, and subscriptions.
bigdatetime and bigtime allow Adaptive Server to store data and time data up to microsecond precision. bigdatetime corresponds to the TIMESTAMP datatype, and bigtime corresponds to the TIME datatype in Sybase IQ.
See “Date/time, and date and time datatypes,” in Chapter 2, “Topics” in the Replication Server Reference Manual for descriptions of the datatypes.
These examples show how to use bigdatetime and bigtime in a replication definition, a function replication definition, and a subscription. In these examples:
PDS – primary data server
pdb1 – primary database
RDS – replicate data server
rdb1 – replicate database
tb1 – table
col1, col2, col3 – columns
rep1 – replication definition
func1 – function replication definition
sub1 – subscription
See Chapter 3, “Replication Server Commands” in the Replication Server Reference Manual for descriptions of the commands.
Example 1 Using the datatypes in a replication definition.
create replication definition rep1 with primary at PDS.pdb1 with all tables named tb1 (col1 int, col2 bigdatetime, col3 bigtime) primary key (col1)
Example 2 Using the datatypes in a function replication definition.
create function replication definition func1 with primary at PDS.pdb1 (@par1 int, @par2 bigdatetime, @par3 bigtime) searchable parameters (@par1)
Example 3 Using the datatypes in a subscription.
create subscription sub1 for rep1 with replicate at RDS.rdb1 where col3 = ‘14:20:00.010101’ without materialization