Sets the current network packet size used to communicate with SQL Server, specified in bytes.

public void setPacketSize(int packetSize)

Parameters

packetSize

An integer value containing the network packet size.

Remarks

The acceptable range of values of this property is 512 to 32767 bytes. If this property is set to a value outside the acceptable range, an exception will occur.

See Also