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 the pdb_set_sql_database command has not been invoked to set the current database, the pdb_get_sql_database command returns the default current database.
The default current database is the primary database to which the Mirror Replication Agent instance is connected. The default current database is identified by the pds_database_name configuration parameter.
To set or change the current database, use the pdb_set_sql_database command.
The pdb_get_sql_database command is valid when the Mirror Replication Agent instance is in either Admin or Replicating state.