Article ID: 296792 - Last Review: October 16, 2003 - Revision: 3.2 PRB: Expired Subscription Cleanup Agent Fails if the First Published Database is DeletedThis article was previously published under Q296792 SYMPTOMS
If the first database that is published is then unpublished and dropped, and there are databases that are published, the Expired Subscription Cleanup Agent fails and the following error message occurs:
Unable to connect to SQL Server '(local)'. The step failed.
[298] SQLServer Error: 4060, Cannot open database requested in login '%.*ls'. Login fails. [SQLSTATE 42000] CAUSE
The Expired Subscription Cleanup job executes the sp_expired_subscription_cleanup stored procedure within the context of the first database that was published. The sp_expired_subscription_cleanup stored procedure tries to run under the context of the database that was dropped but the procedure fails.
WORKAROUND
To work around this problem, follow these steps:
| Article Translations
|
Back to the top
