gebeurtenis
31 mrt, 23 - 2 apr, 23
De grootste SQL-, Fabric- en Power BI-leerevenement. 31 maart – 2 april. Gebruik code FABINSIDER om $ 400 te besparen.
Zorg dat u zich vandaag nog registreertDeze browser wordt niet meer ondersteund.
Upgrade naar Microsoft Edge om te profiteren van de nieuwste functies, beveiligingsupdates en technische ondersteuning.
Applies to:
SQL Server
Checks the status of all the subscriptions of every publication and drops subscriptions that are expired. This stored procedure is executed at the Publisher on any database, or at the Distributor on the distribution database for a non-SQL Server Publisher.
Transact-SQL syntax conventions
sp_expired_subscription_cleanup [ [ @publisher = ] N'publisher' ]
[ ; ]
The name of a non-SQL Server publisher. @publisher is sysname, with a default of NULL
. You shouldn't specify this parameter for a SQL Server Publisher.
0
(success) or 1
(failure).
sp_expired_subscription_cleanup
is used in all types of replication.
The Expired Subscription Clean Up job runs sp_expired_subscription_cleanup
to detect and remove expired subscriptions from publication databases every 24 hours. If any of the subscriptions are out-of-date, that is, aren't synchronized with the Publisher within the retention period, the publication is declared expired, and the traces of the subscription are cleaned up at the Publisher. For more information, see Subscription Expiration and Deactivation.
Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_expired_subscription_cleanup
.
gebeurtenis
31 mrt, 23 - 2 apr, 23
De grootste SQL-, Fabric- en Power BI-leerevenement. 31 maart – 2 april. Gebruik code FABINSIDER om $ 400 te besparen.
Zorg dat u zich vandaag nog registreert