sp_delete_log_shipping_secondary_database (Transact-SQL)
Applies to:
SQL Server
This stored procedure removes a secondary database and removes the local history and remote history.
Transact-SQL syntax conventions
Syntax
sp_delete_log_shipping_secondary_database
[ @secondary_database = ] N'secondary_database'
[ , [ @ignoreremotemonitor = ] ignoreremotemonitor ]
[ ; ]
Arguments
[ @secondary_database = ] N'secondary_database'
The name of the secondary database. @secondary_database is sysname, with no default.
[ @ignoreremotemonitor = ] ignoreremotemonitor
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
Return code values
0
(success) or 1
(failure).
Result set
None.
Remarks
sp_delete_log_shipping_secondary_database
must be run from the master
database on the secondary server.
Permissions
Only members of the sysadmin fixed server role can run this procedure.
Related content
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho