CopySnapshot Method (TransPublication2)
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The CopySnapshot method copies the latest snapshot files to the destination folder.
구문
object
.CopySnapshot(
szDestinationFolder
,
[
szSubscriberName
]
,
[
szSubscriberDB
]
)
Parts
- object
Expression that evaluates to an object in the Applies To list.
- pszDestinationFolder
String that specifies the destination folder.
- szSubscriberName
Optional string that identifies the Subscriber by name.
- szSubscriberDB
Optional string that identifies the database at the Subscriber.
Prototype (C/C++)
HRESULT CopySnapshot(
SQLDMO_LPCSTR pszDestinationFolder,
SQLDMO_LPCSTR szSubscriberName,
SQLDMO_LPCSTR szSubscriberDB);
주의
An application can call the CopySnapshot method only after the TransPublication2 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.
[!참고] If an application calls CopySnapshot on 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.