Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
|BatchingOff||Indicates that SQL Server Compact 3.5 SP1 does not batch rows pushed to SQL Server. The server processes each row separately. This is the default setting.|
|BatchingOn||Indicates that SQL Server Compact 3.5 SP1 batches the rows pushed to SQL Server into a single transaction.|
This property specifies whether SQL Server Compact 3.5 SP1 should batch the changes being sent to the SQL Server table. The default setting, BatchingOff, specifies that insert, update, and delete changes are applied to the SQL Server table as individual transactions. In this case, each transaction is not dependent on another to succeed. BatchingOn specifies that all changes be sent as a single transaction. In this case, all changes must succeed for the transaction to be successful. If one change fails, the entire transaction fails and no changes are applied to the SQL Server table.
Both BatchingOn and BatchingOff return all errors to the error table, not just the first error that occurs. For example, if BatchingOn is specified and three out of five changes fail, no changes are applied and all three failures are stored in the error table. If BatchingOff is specified, the same three failures are stored in the error table, and the other two changes are applied to the SQL Server table. For more information about handling batch errors, see "Remote Data Access (RDA) Conflict Detection and Reporting" in the SQL Server Compact 3.5 SP1 Books Online.
Development PlatformsWindows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
.NET Framework and NET Compact Framework
Supported in 3.5
Supported in 3.0
.NET Compact Framework and .Net Framework
Supported in 2.0