TransPublication.CopySnapshot(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the latest snapshot files for a specific subscription to a destination folder.
public:
void CopySnapshot(System::String ^ destinationFolder, System::String ^ subscriber, System::String ^ subscriptionDB);
public void CopySnapshot (string destinationFolder, string subscriber, string subscriptionDB);
member this.CopySnapshot : string * string * string -> unit
Public Sub CopySnapshot (destinationFolder As String, subscriber As String, subscriptionDB As String)
Parameters
- subscriber
- String
A String value that represents the name of the Subscriber to which subscription belongs.
Remarks
The CopySnapshot method can only be called by members of the sysadmin
fixed server role at the Publisher or by members of the db_owner
fixed database role on the publication database.
Calling CopySnapshot is equivalent to executing sp_copysnapshot (Transact-SQL).