Replication Error:14046

  • In transactional replication,I am getting the following error..

    Could not drop article. A subscription exists on it. [SQLSTATE 42000] (Error 14046) exec sp_AddArticle failed in sproc_AddArticleToPublication [SQLSTATE 01000] (Error 0).

    my question is :how to identify which article has the problem .

    OR

    Please give me some alternate solution..

    Thanks,

    Litu

  • litu deb (7/16/2008)


    In transactional replication,I am getting the following error..

    Could not drop article. A subscription exists on it. [SQLSTATE 42000] (Error 14046) exec sp_AddArticle failed in sproc_AddArticleToPublication [SQLSTATE 01000] (Error 0).

    my question is :how to identify which article has the problem .

    OR

    Please give me some alternate solution..

    Thanks,

    Litu

    sp_helparticle @publication = 'publication' , @article = '%'

    check the result set for your answer!


    * Noel

  • Thanks for the query.

    But sp_helparticle @publication = 'publication' , @article = '%'

    this query show about all the article,From here how can I identify which article has problem.

    Please help..

    Thanks,

    Litu Deb

  • litu deb (8/11/2008)


    Thanks for the query.

    But sp_helparticle @publication = 'publication' , @article = '%'

    this query show about all the article,From here how can I identify which article has problem.

    Please help..

    Thanks,

    Litu Deb

    I thought you knew the "ID" of the article. and that's why I recommended sp_helparticle so that you could locate the offending item.

    If you don't know the ID (article_id) you should look in the distribution database for the subscriptions that are enabled on MSsubscriptions table ( select * from distribution.dbo.MSsubscriptions )

    HTH


    * Noel

  • When I am running the following command ,getting more than 600 rows,how I will check which article has problem..

    select * from distribution.dbo.MSsubscriptions where subscriber_id=0

    Thanks,

    Litu Deb

  • Hi !

    I've a similar problem, i have a replication between SS2k5 and Oracle db, and every day i drop and add new articles because they are tables with dally data. When i try to drop a subscription and the following article via SQL Job with the following T-SQL:

    ...

    EXEC sp_dropsubscription @publication = @EXECStrPublicationName,

    @article = @EXECStrTableName,

    @publisher = @EXECStrPublisherName,

    @subscriber = @EXECStrSubscriberName,

    @destination_db = @EXECStrDestination_DbName

    GO

    ...

    it returns the following error:

    Executed as user: SQLAdmin. Could not drop article. A subscription exists on it. [SQLSTATE 42000] (Error 14046) Invalidated the existing snapshot of the publication. Run the Snapshot Agent again to generate a new snapshot. [SQLSTATE 01000] (Error 20605). The step failed.

    I've tried the post's above, without any luck.

    Any ideia ?

  • Hi,

    If I understand your problem correctly, are you trying to delete publication or article, please clarify.

    Meanwhile, below table you can query which will give you all details about articles, publications and subscription in distribution database.

    select * from distribution..mssubscriptions

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply