Jaa


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.

Syntax

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)

Remarks

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);

See Also

Concepts

Programming Replication Using ActiveX Controls

Help and Information

Getting SQL Server 2005 Assistance