Replication Agent processes Microsoft SQL Server transactions and passes transaction information to the primary Replication Server.
The primary Replication Server uses the datatype formats specified in the replication definition to receive the data from Replication Agent.
The following table describes the default conversion of Microsoft SQL Server datatypes to Sybase Replication Server datatypes.
Microsoft SQL Server datatype |
Microsoft SQL Server length/range |
Sybase datatype |
Sybase length/range |
Notes |
---|---|---|---|---|
bit |
integer with value of 0 or 1 |
bit |
||
int |
-231 to 231 - 1 |
int |
||
smallint |
integer with value from -215 to 215 - 1 |
smallint |
||
tinyint |
integer with value from 0 to 255 |
tinyint |
||
decimal |
numeric from -1038 to 1038 - 1 |
decimal |
||
numeric |
synonym for decimal datatype |
numeric |
||
money |
monetary from -263 to 263 - 1 |
money |
||
smallmoney |
monetary from -214,748.3648 to 214,748.3647 |
smallmoney |
||
float |
floating precision from -1.79E + 308 to 1.79E + 308. |
Results in Sybase are machine dependent. |
||
real |
floating precision from -3.40E + 38 to 3.40E + 38 |
Results in Sybase are machine dependent. |
||
datetime |
date and time from 01/01/1753 to 12/31/9999 |
datetime |
||
smalldatetime |
date and time from 01/01/1900 to 06/06/2079 |
datetime |
||
timestamp |
database-wide unique number |
timestamp |
To retain the actual value assigned in SQL Server, replicate to the varbinary(8) datatype. |
|
uniqueidentifier |
globally unique identifier |
varbinary |
No Sybase equivalent. Map to binary(38) or varbinary(38) datatype. |
|
char |
fixed length up to 8000 characters |
char |
32K |
|
varchar |
variable length up to 8000 characters |
varchar |
32K |
|
text |
variable length up to 231 - 1 characters |
text |
2 GB |
|
nchar |
fixed length Unicode up to 4000 characters |
unichar or char |
32K |
To use the unichar datatype, the use_rssd parameter must be true and the replication definition must specify a Unicode datatype. Actual maximum length is @@ncharsize * number of characters. |
nvarchar |
variable length Unicode up to 4000 characters |
univarchar or varchar |
32K |
To use the univarchar datatype, the use_rssd parameter must be true and the replication definition must specify a Unicode datatype. Actual maximum length is @@ncharsize * number of characters. |
ntext |
variable length Unicode up to 230 - 1 characters |
text |
2 GB |
|
binary |
fixed length up to 8000 bytes |
binary |
32K |
|
varbinary |
variable length up to 8000 bytes |
varbinary |
32K |
|
image |
variable length up to 231 - 1 bytes |
image |
2 GB |
|
sql_variant |
any datatype except text, ntext, timestamp, and sql_variant, up to 8000 bytes |
varbinary |
32K |