sp_copysnapshot (języka Transact-SQL)
Kopiuje folderu migawka publikacja określonego folderu, wymienionych w @ destination_folder.Ta procedura składowana jest wykonywany na Wydawca na bazie publikacja.Ta procedura składowana jest przydatne kopiowania migawka do nośników wymiennych, takich jak dyski CD-ROM.
Składnia
sp_copysnapshot [ @publication = ] 'publication', [ @destination_folder = ] 'destination_folder' ]
[ , [ @subscriber = ] 'subscriber' ]
[ , [ @subscriber_db = ] 'subscriber_db' ]
Argumenty
[ @ publikacja = '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.destination_folder Może być alternatywnej lokalizacji na przykład na innym serwerze, dysk sieciowy lub nośników wymiennych (takich jak dyski CD-ROM lub dyski wymienne).[ @ subskrybent = '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.
Wartości kodów powrotnych
0 (sukces) lub 1 (błąd)
Uwagi
sp_copysnapshot jest używana we wszystkich typach replikacja.Subscribers running Microsoft SQL Server version 7.0 and earlier cannot use the alternate snapshot location.
Uprawnienia
Tylko członkowie sysadmin stała rola serwera lub db_owner ustaloną rola bazy danych można wykonać sp_copysnapshot.
Zobacz także