Răspuns Cannot update Identity Column

  • 2 martie 2012 22:29
     
     

    I added a article in publication using following script:

    USE

                DB   
    GO

    --Add the new article to the publication
    ----------------------------------------
    sp_addarticle
                    @publication = 'publication name'

                    ,@source_Owner = 'dbo'
                    ,@article = 'table name'
                    ,@source_Object = 'table name'
                    ,@force_invalidate_snapshot = 1
    GO

    -------------------------------------------------------
    EXEC sp_addsubscription
                    @publication = 'publication name'


                    ,@article = 'table name'
                    ,@subscriber = 'subscriber instance name'
                    ,@destination_db = 'subscriber DB name'
                    ,@reserved = 'internal'
                    ,@sync_type= 'replication support only'
    GO

    This table exists in subscriber DB.

    The tables identity column is marked for not for replication in both Publication and subscription tables.

    But i get "Cannot update Identity Column" error.

    Any ideas ?

    Thanks in Advance.


    Thank you -Mushtaq


Toate mesajele