Type Property (RegisteredSubscriber)

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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

Syntax

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.