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 Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SABulkCopy class » WriteToServer methods

 

WriteToServer(DataTable, DataRowState) method

Copies all rows in the supplied [external link] DataTable with the specified row state to a destination table specified by the DestinationTableName property of the SABulkCopy object.

Syntax
Visual Basic

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

public void WriteToServer(
   DataTable table,
   DataRowState rowState
);
Parameters
  • table   A System.Data.DataTable whose rows will be copied to the destination table.

  • rowState   A value from the System.Data.DataRowState enumeration. Only rows matching the row state are copied to the destination.

Remarks

Only those rows matching the row state are copied.

Restrictions: The SABulkCopy class is not available in the .NET Compact Framework 2.0.

See also