Aracılığıyla paylaş


sp_article_validation (Transact-SQL)

Belirtilen makale için bir veri doğrulama isteği başlatır.Bu saklı yordam üzerinde yürütülür ve abone yayın veritabanı üzerinde yayımcı abonelik veritabanı.

Konu bağlantısı simgesiTransact-sql sözdizimi kuralları

Sözdizimi

sp_article_validation [ @publication = ] 'publication'
    [ , [ @article = ] 'article' ]
    [ , [ @rowcount_only = ] type_of_check_requested ]
    [ , [ @full_or_fast = ] full_or_fast ]
    [ , [ @shutdown_agent = ] shutdown_agent ]
    [ , [ @subscription_level = ] subscription_level ]
    [ , [ @reserved = ] reserved ]
    [ , [ @publisher = ] 'publisher' ]

Bağımsız değişkenler

  • [ @publication=] 'publication'
    Is the name of the publication in which the article exists.publication is sysname, with no default.

  • [ @article=] 'article'
    Is the name of the article to validate.article is sysname, with no default.

  • [ @rowcount_only=] type_of_check_requested
    Specifies if only the rowcount for the table is returned.type_of_check_requested is smallint, with a default of 1.

    If 0, perform a rowcount and a Microsoft SQL Server 7.0 compatible checksum.

    If 1, perform a rowcount check only.

    If 2, perform a rowcount and binary checksum.

  • [ @full_or_fast=] full_or_fast
    Is the method used to calculate the rowcount.full_or_fast is tinyint, and can be one of these values.

    Değer

    Açıklama

    0

    Tam sayım count(*) kullanarak gerçekleştirir.

    1

    Hızlı sayımla gerçekleştiren sysindexes.rows.Satır sayımı sysindexes gerçek satır sayımı çok daha hızlı tablo.Ancak, sysindexes lazily, güncelleştirilir ve rowcount doğru olmayabilir.

    2 (varsayılan)

    Hızlı yöntem deneyerek koşullu Hızlı sayım gerçekleştirir.Hızlı yöntem farklılıklar gösteriyorsa, tam yönteme döner.If expected_rowcount is NULL and the stored procedure is being used to get the value, a full COUNT(*) is always used.

  • [ @shutdown_agent=] shutdown_agent
    Specifies if the Distribution agent should shut down immediately upon completion of the validation.shutdown_agent is bit, with a default of 0.If 0, the Distribution Agent does not shut down.If 1, the Distribution Agent shuts down after the article is validated.

  • [ @subscription_level=] subscription_level
    Specifies whether or not the validation is picked up by a set of subscribers.subscription_level is bit, with a default of 0.If 0, validation is applied to all Subscribers.If 1, validation is only applied to a subset of the Subscribers specified by calls to sp_marksubscriptionvalidation in the current open transaction.

  • [ @reserved=] reserved
    Yalnızca bilgi amaçlı olarak belirtilmiştir. Desteklenmez. Gelecekteki uyumluluk garanti edilmez.

  • [ @ publisher =] 'publisher'
    Specifies a non-Microsoft SQL Server Publisher.publisher is sysname, with a default of NULL.

    Not

    publisherdoğrulama üzerinde isterken kullanılmamalıdır bir SQL Server Yayımcı.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (başarısız)

Açıklamalar

sp_article_validation 'deki işlem çoğaltma kullanılır.

sp_article_validation belirtilen makale üzerinde toplanan için doğrulama bilgileri neden olur ve bir doğrulama isteği için işlem günlüğü deftere nakleder.Dağıtım Aracısı bu isteği aldığında, Dağıtım Aracısı abonelik isteği doğrulama bilgileri karşılaştırır tablo.sonuçlar Doğrulanmasını Replication Monitor ve içinde görüntülenen SQL Server Agent uyarıları.

İzinler

Yalnızca doğrulanan makale için kaynak tablo üzerindeki tüm izinleri olan kullanıcılar seçin yürütmek sp_article_validation.