Condividi tramite


UseInProcLoader Property (Replication ActiveX)

The UseInProcLoader property returns or sets whether to use the BULK INSERT (Transact-SQL) command when applying snapshot files to the Subscriber, which is a performance improvement for applying the initial snapshot.

Sintassi

object.UseInProcLoader [= value]
Part Description

object

Expression that evaluates to a SQLDistribution Object (Replication ActiveX) object.

value

If set to True, the performance optimization is used.

Applies To

SQLDistribution Object (Replication ActiveX)

Osservazioni

This property is deprecated because it is not compatible with the XML data type. If you are not replicating XML data, this property can be used.

This property cannot be used with character mode snapshots or non-SQL Server Subscribers.

If you use this property, the SQL Server service account at the Subscriber must have read permissions on the directory where the snapshot .bcp data files are located. When this property is not used, the agent (for non-SQL Server Subscribers) or the ODBC driver loaded by the agent (for SQL Server Subscribers) reads from the files, so the security context of the SQL Server service account is not used.

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT UseInProcLoader(VARIANT_BOOL pVal);
HRESULT UseInProcLoader(VARIANT_BOOL* pVal);

Vedere anche

Concetti

Programming Replication Using ActiveX Controls

Guida in linea e informazioni

Assistenza su SQL Server 2005