rs_usedb

Changes the database context in a data server.

Examples

Usage

  • The Replication Server DSI executes the function when it first connects to the data server.

  • rs_usedb has function-string class scope.

  • Replication Server creates an initial rs_usedb function string for the system-provided function-string classes during installation.

  • If you use a user-created base function-string class, create a function string for the rs_usedb function.

  • Create or customize an rs_usedb function string at the Replication Server that is the primary site for the class.

  • The default generated function string for the rs_usedb function, for the rs_sqlserver_function_class and rs_default_function_class classes, has the syntax of the Transact-SQL use command.

  • If a data server does not support multiple databases or a database context, the output template can be an empty string (' ').

Related reference
alter function string
create function string