共用方式為


ImportRowsPerBatch Property

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The ImportRowsPerBatch property specifies the number of rows contained in a bulk-copy transaction.

語法

object
.ImportRowsPerBatch [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A long integer greater than 0

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetImportRowsPerBatch(LPLONG pRetVal);
HRESULT SetImportRowsPerBatch(LONG NewValue);

備註

The Microsoft SQL Server bulk-copy process can copy large amounts of data from an external data file to a SQL Server table. By default, a bulk-copy data-import operation inserts all rows in the data file in a single transaction. SQL Server does not guarantee data integrity until and unless a bulk-copy transaction is committed.

Use ImportRowsPerBatch to adjust the size of the bulk copy transaction.

Applies To:

BulkCopy Object

請參閱

其他資源

批次

說明及資訊

取得 SQL Server 2005 協助