Change Parameters Affecting a Single Connection

After a connection is created, you can change its configuration parameters with the alter connection command.

alter connection lets you change the attributes of a database connection. Use this command, for example, if you have added an Adaptive Server database connection using Sybase Central or rs_init, and then decide that you want the database connection to use a derived function-string class instead of a system-provided class. The syntax for alter connection is:
alter connection to data_server.database {
	set function string class [to] function_class |
	set error class [to] error_class |
	set password [to] passwd |
	set log transfer [to] {on | off} |
	set database_param [to] 'value'} |
	set security_param to {‘required’ | ‘not_required’} |
	set security_services [to] “default’
}

You indicate the data server and database that is connected to the Replication Server and specify one or more of the attributes to change. These include:

function_class – the function-string class to use with the database connection.

error_class – the error class to use for handling database errors.

passwd – the new password to use with the login name for the database connection.

log transfer on – allows transactions to be sent, using this connection, to the Replication Server.

log transfer off – stops transactions from being sent, using this connection, from a primary database to the Replication Server.

database_param – updates a configuration parameter that affects connections.

security_param – updates a network security configuration parameter that affects connections.

set security_services [to] ‘default’ – resets all network-based security features for the connection to “not required.”

An Example of Using alter connection

To change the function-string class for the pubs2 database in the SYDNEY_DS data server to sqlserver_derived_class, in the SYDNEY_RS Replication Server enter:
suspend connection to SYDNEY_DS.pubs2
alter connection to SYDNEY_DS.pubs2
    set function string to class
      sqlserver_derived_class
resume connection to SYDNEY_DS.pubs2

See Replication Server Reference Manual > Replication Server Commands for more information about the keywords and options of the alter connection command.

Related concepts
Manage Network-based Security