EnumPublications List

SQLServer.RemoteServer Object

Description

Lists publications of the specified database on a remote server. List is returned in a QueryResults object.

Visual Basic

QueryResults = RemoteServer.EnumPublications ( [DatabaseName :=] idPubDatabase )

C++

HRESULT pRemoteServer->EnumPublications (
SQLOLE_LPCSTR
idPubDatabase,
LPSQLOLEQUERYRESULTS*
ppQueryResults );

Elements

Element Type Description

QueryResults QueryResults Returned QueryResults object
idPubDatabase Identifier Database on the remote server that contains the publication

QueryResults

ColumnName ColumnType

pubid SQLOLE_DTypeInt4
name SQLOLE_DTypeChar
restricted SQLOLE_DTypeBit
status SQLOLE_DTypeInt1
task SQLOLE_DTypeInt4
replication frequency SQLOLE_DTypeInt1
synchronization method SQLOLE_DTypeInt1
description SQLOLE_DTypeChar