Udostępnij za pośrednictwem


sp_help_log_shipping_secondary_primary (Transact-SQL)

Ta procedura przechowywana pobiera ustawienia dla danej podstawowa baza danych serwer pomocniczy.

Topic link iconKonwencje składni języka Transact-SQL

sp_help_log_shipping_secondary_primary
[ @primary_server = ] 'primary_server' OR
[ @primary_database = ] 'primary_database'

Argumenty

  • [ @ primary_server = ] 'primary_server"
    The name of the primary instance of the Microsoft SQL Server Database Engine in the log shipping configuration.primary_server is sysname and cannot be NULL.

  • [ @ primary_database = ] 'primary_database"
    Is the name of the database on the primary server.primary_database is sysname, with no default.

Wartości kodów powrotnych

0 (sukces) lub 1 (brak)

Zestawy wyników

Zestaw wyników zawiera kolumny secondary_id, primary_server, primary_database, backup_source_directory, backup_destination_directory, file_retention_period, copy_job_id, restore_job_id, monitor_server, monitor_server_security_mode z log_shipping_secondary.

Remarks

sp_help_log_shipping_secondary_primary musi być uruchamiane wzorzec bazy danych serwer pomocniczy.

Uprawnienia

Tylko członkowie sysadmin roli serwera stałe można uruchomić tę procedurę.