Aracılığıyla paylaş


sp_browsesnapshotfolder (Transact-SQL)

Bir yayın için oluşturulmuş en son anlık görüntü için tam yolunu döndürür.Bu saklı yordam, yayın Veritabanı yayımcısına sırasında yürütülür.

Topic link iconTransact-SQL sözdizimi kuralları


sp_browsesnapshotfolder [@publication= ] 'publication'
    { [ , [ @subscriber = ] 'subscriber' ]
 [ , [ @subscriber_db = ] 'subscriber_db' ] }

Bağımsız değişkenler

  • [ @publication=] 'publication'
    Is the name of the publication that contains the article.publication is sysname, with no default.

  • [ @subscriber=] 'subscriber'
    Is the name of the Subscriber.subscriber is sysname, with a default of NULL.

  • [ @subscriber_db=] 'subscriber_db'
    Is the name of the subscription database.subscriber_db is sysname, with a default of NULL.

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (hata)

Sonuç Kümeleri

Sütun adı

Veri türü

Açıklama

snapshot_folder

nvarchar(512)

Anlık görüntü dizininin tam yol.

Remarks

sp_browsesnapshotfolder işlem çoğaltma anlık görüntü çoğaltması çoğaltması de kullanılır.

If the subscriber and subscriber_db fields are left NULL, the saklı yordam returns the anlık görüntü folder of the most recent anlık görüntü it can find for the yayın. If the subscriber and subscriber_db fields are specified, the saklı yordam returns the anlık görüntü folder for the specified abonelik. Anlık görüntü yayın için boş bir sonuç değil oluşturulduysa küme döndürülür.

yayın Yayımcı çalışma dizinini de Yayımcı anlık klasörü anlık görüntü dosyaları oluşturmak için ayarlanmışsa, sonuç kümesi, iki satır içerir.The first row contains the publication snapshot folder and the second row contains the publisher working directory.sp_browsesnapshotfolder is useful for determining the directory where snapshot files are generated.

İzinler

Yalnızca üyeleri sysadmin sabit sunucu rolü veya db_owner sabit veritabanı rolü için yürütmek sp_browsesnapshotfolder.

See Also

Other Resources