Microsoft SQL Server primary data servers

This section describes the primary database issues and considerations specific to the Microsoft SQL Server data server in a Sybase replication system.

Replication Agent for Microsoft SQL Server

As a primary data server, Microsoft SQL Server interacts with Sybase Replication Agent. The Replication Agent identifies and transfers information about data-changing operations (or transactions) from a Microsoft SQL Server primary data server to a primary Replication Server.

The Replication Agent interacts with the primary Replication Server, and with the RSSD of the primary Replication Server, if so configured.

Microsoft SQL Server primary database permissions

The Replication Agent requires a Microsoft SQL Server user login that has permission to access data and create new objects in the primary database.

The Microsoft SQL Server login must have the following permissions in the primary database:

Replication intrusions and impacts in Microsoft SQL Server

The performance and operation of Microsoft SQL Server primary data servers in a Sybase replication system might be affected by the following:

Primary data server connectivity

Sybase Replication Agent requires the following to connect to a Microsoft SQL Server primary data server:

Replication Server connectivity

The values of the following Replication Agent configuration parameters must be set as described so that the Replication Agent can connect to the primary Replication Server:

NoteSybase Replication Agent uses TCP/IP and the Sybase JDBC driver (jConnect for JDBC, which is included in Replication Agent installation) to communicate with other Sybase servers. The Replication Agent does not rely on the Sybase interfaces file for connectivity information.

RSSD connectivity

The values of the following Replication Agent configuration parameters must be set as described so that the Replication Agent can connect to the RSSD of the primary Replication Server:

Primary database limitations in Microsoft SQL Server

The Sybase Replication Agent imposes the following limitations on a Microsoft SQL Server primary data server:

Replication Server Manager has the following limitations with a Microsoft SQL Server primary data server:

Microsoft SQL Server primary database configuration issues

All the installation issues and configuration parameter details for a Microsoft SQL Server primary data server are provided in the Sybase Replication Agent Installation Guide. The following are a few items that may need additional attention:

Replication definitions for primary tables in Microsoft SQL Server

The Replication Agent use_rssd configuration parameter controls whether the Replication Agent sends Log Transfer Language (LTL) that contains only the columns specified in a replication definition, or all of the columns in the primary table.

When the value of the use_rssd parameter is set to false, the Replication Agent sends LTL with data for all of the columns in the primary table. When the value of the use_rssd parameter is set to true, the Replication Agent sends LTL with data for only the columns specified in the replication definition for each primary table.

By sending data for only the columns specified in the replication definition, network traffic is reduced, which can improve performance.

In addition, column names and parameter names are removed from the LTL because the Replication Agent can send information in the order identified by the replication definition. The LTL minimal columns and structured tokens options are also available when the value of the use_rssd parameter is set to true. See the Sybase Replication Agent Administration Guide for more information.

Microsoft SQL Server primary datatype translation issues

The Microsoft SQL Server datetime datatype is compatible with the Sybase datetime datatype, so the Replication Agent pdb_convert_datetime parameter is not significant for a Microsoft SQL Server primary data server.

All Microsoft SQL Server datatypes are compatible with the corresponding Adaptive Server datatypes.

Microsoft SQL Server system management issues

The Sybase Replication Agent provides a number of commands that return metadata information about the primary database (database names, table names, procedure names, column names, and so forth). It does this by issuing specific JDBC calls designed to return this information, or by querying the system tables directly.

Replication Server Manager (RSM) can be configured to use either the Replication Agent or a DirectConnect database gateway to return information about the primary database. Typically, RSM uses the Replication Agent to obtain information from the primary database, and uses a DirectConnect gateway to obtain information from a replicate database. You can specify which product is used to return metadata information to RSM when you add a non-Sybase data server using the RSM Add Server wizard.

Further considerations of using RSM are:

Other primary database issues for Microsoft SQL Server

The Sybase Replication Agent provides a set of sample scripts that you can use to set up simple, single-table replication from Microsoft SQL Server to Adaptive Server. These scripts can be found in the $SYBASE/rax-12_6/scripts directory.

See the Sybase Replication Agent Administration Guide for more information about the sample scripts and their use.