Configuring a database connection

You can set or change certain configuration parameters for each database connection.

For more information about connection configuration parameters for primary and replicate databases, see “Connection configuration parameters”.

StepsTo configure a primary database connection

  1. Use sp_configprimaryconn with the following syntax:

    sp_configprimaryconn "conn_name", param, value
    

    where conn_name is the connection name in the form ds.db, param is the name of the configuration parameter, and value is the value of the configuration parameter.

StepsTo configure a replicate database connection

  1. Use sp_configreplicateconn with the following syntax:

    sp_configreplicateconn "conn_name", param, value
    

    where conn_name is the connection name in the form ds.db, param is the name of the configuration parameter, and value is the value of the configuration parameter.