Freigeben über


CopySnapshot Method (MergePublication2)

Diese Funktion wird in zukünftigen Versionen von Microsoft SQL Server nicht mehr bereitgestellt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The CopySnapshot method copies the latest snapshot files to the destination folder.

Syntax

object.CopySnapshot(pszDestinationFolder)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • pszDestinationFolder
    String that specifies the destination folder.

Prototype (C/C++)

HRESULT CopySnapshot(SQLDMO_LPCSTR pszDestinationFolder);

Hinweise

An application can call the CopySnapshot method only after the MergePublication2 object is created.

The pszDestinationFolder parameter specifies a folder relative to the server computer, not the client computer, if the destination folder is not a UNC path.

HinweisHinweis

If an application calls CopySnapshoton an instance of SQL Server version 7.0, the constant, SQLDMO_E_SQL80ONLY, and the message "This property or method requires Microsoft SQL Server 2000" are returned.

Applies to: