Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SABulkCopy 类 » WriteToServer 方法

 

WriteToServer(DataTable, DataRowState) 方法

将提供的 [external link] DataTable 中的所有具有指定行状态的行复制到由 SABulkCopy 对象的 DestinationTableName 属性所指定的目标表中。

语法
Visual Basic

Public Sub WriteToServer( _
   ByVal table As DataTable, _
   ByVal rowState As DataRowState _
)
C#

public void WriteToServer(
   DataTable table,
   DataRowState rowState
);
参数
  • table   其行将被复制到目标表中的一个 System.Data.DataTable。

  • rowState   System.Data.DataRowState 枚举中的一个值。只有与行状态匹配的行才会复制到目标表中。

注释

只会复制与行状态匹配的行。

Restrictions: 无法在 .NET Compact Framework 2.0 中使用 SABulkCopy 类。

另请参见