Returns the name of the current database, if any.
pdb_get_sql_database
When pdb_get_sql_database is invoked, it returns the name of the current database.
If a database has not been specified as the current database with the pdb_set_sql_database command, the pdb_get_sql_database command returns the default current database.
The default current database is the primary database to which the Replication Agent instance is connected (as specified by the Replication Agent pds_database_name configuration parameter).
If a database has not been specified as the current
database with the pdb_set_sql_database command,
the pdb_execute_sql command
executes the SQL query against the primary database (the default
current database).
To set or change the current database, use the pdb_set_sql_database command.
The pdb_get_sql_database command is valid when the Replication Agent instance is in either Admin or Replicating state.
pdb_execute_sql, pdb_set_sql_database