Compartilhar via


Type Property (RegisteredSubscriber)

Esse recurso será removido em uma versão futura do Microsoft SQL Server. Evite usar esse recurso em desenvolvimentos novos e planeje modificar os aplicativos que atualmente o utilizam.

The Type property exposes configured attributes of the referenced Microsoft SQL Server component.

Sintaxe

object.Type [= value]

Parts

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

  • value
    A long integer that specifies a data source type as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write when using the RegisteredSubscriber object to define a replication Subscriber. Read-only when the RegisteredSubscriber object references an existing Subscriber definition record.

Prototype (C/C++)

HRESULT GetType(SQLDMO_SUBSCRIBER_TYPE* pRetVal)
HRESULT SetType(SQLDMO_SUBSCRIBER_TYPE NewValue)

Settings

Set value using these SQLDMO_SUBSCRIBER_TYPE values.

Constant

Value

Description

SQLDMOSubInfo_/ExchangeServer

4

The Type property of the RegisteredSubscriber object that identifies a Microsoft Exchange Server installation persisted as a SQL Server linked server.

SQLDMOSubInfo_JetDatabase

2

The Name property of the RegisteredSubscriberobject that identifies a Microsoft Jet version 3.5 database.

SQLDMOSubInfo_/ODBCDatasource

1

The Name property of the RegisteredSubscriber object that identifies an ODBC user or system data source name.

SQLDMOSubInfo_/OLEDBDatasource

3

The Type property of the RegisteredSubscriber object that identifies an OLE DB data source specification, or the Microsoft Jet version 4.0 database persisted as a SQL Server linked server.

SQLDMOSubInfo_SQLServer

0

The Name property of the RegisteredSubscriber object that identifies an instance of SQL Server by SQL Server name.