Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari iniPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
Applies to:
SQL Server
Removes metadata when a subscription is dropped at a Subscriber. For a synchronizing transaction subscription, it also includes immediate-updating triggers. This stored procedure is executed at the Subscriber on the subscription database.
Transact-SQL syntax conventions
sp_subscription_cleanup
[ @publisher = ] N'publisher'
[ , [ @publisher_db = ] N'publisher_db' ]
[ , [ @publication = ] N'publication' ]
[ , [ @reserved = ] N'reserved' ]
[ , [ @from_backup = ] from_backup ]
[ ; ]
The name of the Publisher. @publisher is sysname, with no default.
The name of the Publisher database. @publisher_db is sysname, with a default of NULL
.
The name of the publication. @publication is sysname, with a default of NULL
. If NULL
, subscriptions using a shared agent publication in the publishing database are deleted.
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
0
(success) or 1
(failure).
sp_subscription_cleanup
is used in transactional and snapshot replication.
Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_subscription_cleanup
.
Peristiwa
31 Mac, 11 PTG - 2 Apr, 11 PTG
Acara pembelajaran SQL, Fabric dan Power BI terbesar. 31 Mac - 2 April. Gunakan kod FABINSIDER untuk menjimatkan $400.
Daftar hari ini