sp_browsesnapshotfolder (Transact-SQL)
Tam sayı yol bir yayın için oluşturulan en yeni anlık görüntü için.Bu saklı yordam, yayın veritabanı üzerinde yayımcı adresindeki yürütülür.
Sözdizimi
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 (başarısız)
Sonuç Kümeleri
Sütun adı |
Veri türü |
Açıklama |
---|---|---|
snapshot_folder |
nvarchar(512) |
Anlık görüntü dizinin tam yol. |
Açıklamalar
sp_browsesnapshotfolder anlık görüntü çoğaltması çoğaltması çoğaltma ve işlem çoğaltma kullanılır.
If the subscriber and subscriber_db fields are left NULL, the stored procedure returns the snapshot folder of the most recent snapshot it can find for the publication.If the subscriber and subscriber_db fields are specified, the stored procedure returns the snapshot folder for the specified subscription.Anlık görüntü yayın için oluşturulmadı, bir boş sonuç küme döndürülür.
yayın, hem Yayımcı çalışma dizini ve Yayımcı anlık klasöründe anlık görüntü dosyaları oluşturmak için ayarlanmışsa, iki satır sonuç küme 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ü olabilir yürütmek sp_browsesnapshotfolder.