Mono Class Library: System.Data.SqlClient.SqlConnection Overview | Members

System.Data.SqlClient.SqlConnection.PacketSize Property

Gets the packet size used to communicate with a SQL Server.

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public int PacketSize { get; }

Value

The packet size, in bytes.

Remarks

Gets the packet size used to communicate with a SQL Server over a network.

The SqlConnection.PacketSize can be set by appending the "packet size" value to the Connection String.

Note: The default packet size is 8192 bytes.

Requirements

Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0