Aracılığıyla paylaş


sp_copysnapshot (Transact-SQL)

Anlık görüntü klasörü belirtilen yayın listelenen klasöre kopyalar @ destination_folder.Bu saklı yordam, yayın Veritabanı yayımcısına sırasında yürütülür.Bu saklı yordam, CD-ROM gibi çıkarılabilir medyada, anlık görüntü kopyalama için yararlıdır.

Topic link iconTransact-SQL sözdizimi kuralları

sp_copysnapshot [ @publication = ] 'publication', [ @destination_folder = ] 'destination_folder' ]
    [ , [ @subscriber = ] 'subscriber' ]
    [ , [ @subscriber_db = ] 'subscriber_db' ]

Bağımsız değişkenler

  • [ @publication=] 'publication'
    Is the name of the publication whose snapshot contents are to be copied.publication is sysname, with no default.

  • [ @destination_folder=] 'destination_folder'
    Is the name of the folder where the contents of the publication snapshot are to be copied.destination_folderis nvarchar(255), with no default.The destination_folder can be an alternate location such as on another server, on a network drive, or on removable media (such as CD-ROMs or removable disks).

  • [ @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)

Remarks

sp_copysnapshot çoğaltma tüm türleri kullanılır.Subscribers running Microsoft SQL Server version 7.0 and earlier cannot use the alternate snapshot location.

İzinler

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