Error: 17805, Severity: 20, State: 3
Invalid buffer received from client.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
I'm sure it's SP4 because after I reinstalled SQL Server with SP3, everything worked fine again. The server is running Windows 2003 SP1.
Anyone else having this problem or have a solution?
<quote>
In SP4, the maximum value for the network packet size option (set using
sp_configure) is 32767. This is slightly less than half the previous maximum
of 65536. During upgrade, existing values larger than 32767 will
automatically be adjusted to 32767. If a script attempts to use sp_configure
to set a value larger than 32767 but less than or equal to 65536, the value
will also be set to 32767. Setting the network packet size to a value larger
than 65536 results in an error.
</quote>
There's used to be a bug even when the network packet size was set to
65535...
http://support.microsoft.com/kb/875411
--
-oj
"Watery" <wate...@hotmail.com> wrote in message
news:4281...@duster.adelaide.on.net...
Do you have an example of how to change the packet size to 32767 - is it through the connection string? At the moment, it has packet size set to 4096.
According to the article, you might want to limit each of your insert batch
to 32767 rows.
--
-oj
"Watery" <wate...@hotmail.com> wrote in message
news:42817d1b$1...@duster.adelaide.on.net...
Here's my connection string:
UID=user;PWD=password;Initial Catalog=DatabaseName;Data Source=ServerName;Packet Size=4096;
I tried the packet size 2048, 1024, 768 but they all return the same error.
Any help is greatly appreciated!
If you post your code (.Net call + sql), someone will take a closer look.
--
-oj
"Watery" <wate...@hotmail.com> wrote in message
news:428293aa$1...@duster.adelaide.on.net...
But now it runs extremely slow and frequently timeout. Any solution to this problem as well?
--
-oj
"Watery" <wate...@hotmail.com> wrote in message
news:4282...@duster.adelaide.on.net...
The problem was caused by creating an SQL parameter using DbType instead of SqlDbType. I was trying to create a generic data provider that connects to both Oracle and SQL Server. Now I think I have to map the individual DbType to SqlDbType.
Anyway, thanks for your help!! Much appreciated!
--
-oj
"Watery" <wate...@hotmail.com> wrote in message
news:4282...@duster.adelaide.on.net...