次の方法で共有


TransSynchronizationAgent.UseInProcLoader プロパティ

Gets or sets a value that indicates whether to use the BULK INSERT command when applying snapshot files at the subscriber.

名前空間:  Microsoft.SqlServer.Replication
アセンブリ:  Microsoft.SqlServer.Replication (Microsoft.SqlServer.Replication.dll)

構文

'宣言
Public Overridable Property UseInProcLoader As Boolean 
    Get 
    Set
'使用
Dim instance As TransSynchronizationAgent 
Dim value As Boolean 

value = instance.UseInProcLoader

instance.UseInProcLoader = value
public virtual bool UseInProcLoader { get; set; }
public:
virtual property bool UseInProcLoader {
    bool get ();
    void set (bool value);
}
abstract UseInProcLoader : bool with get, set 
override UseInProcLoader : bool with get, set
function get UseInProcLoader () : boolean 
function set UseInProcLoader (value : boolean)

プロパティ値

型: System.Boolean
true to use the BULK INSERT command when applying snapshot files at the Subscriber; otherwise, false.

実装

ITransSynchronizationAgent.UseInProcLoader

説明

Setting UseInProcLoader to true means that the Distribution Agent will use the BULK INSERT command when applying the initial snapshot at the Subscriber. This improves the performance of the initial snapshot.

The UseInProcLoader 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.

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

If you use the UseInProcLoader 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 the UseInProcLoader 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; therefore, the security context of the SQL Server service account is not used.

関連項目

参照

TransSynchronizationAgent クラス

Microsoft.SqlServer.Replication 名前空間