NetPacketSize Property (SQL-DMO)

The NetPacketSize property specifies the size of a network packet used to transmit a block of data between a client and a server running Microsoft® SQL Server™.

Applies To

SQLServer Object

Syntax

object.NetPacketSize [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer value from 128 through 65535

Remarks

SQL Server uses a default network packet size of 4096 bytes. The size of a network packet may be limited by the Net-Library used for the client connection.

Setting NetPacketSize to 0 enables the default size, 4096 bytes.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetNetPacketSize(LPLONG pRetVal);

HRESULT SetNetPacketSize(long NewValue);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.