M
Martin Bischoff
Hi,
I'm using the SqlHelper class from microsofts data access application
block and have problems when trying to call a stored procedure that has
a TEXT parameter.
I'm using the following environment:
- SQL Server 2000 SP3a + Cumulative Patch (July 2003)
- .NET 1.0
- Data Access Application Block 1.0
The method SqlHelperParameterCache.DiscoverSpParameterSet returns a
SqlParameter with SqlDbType set to VarChar and Size set to
Int32.MaxValue. The problem seems to be in
SqlCommandBuilder.DeriveParameters.
When calling the stored procedure with the automatically discovered
parameter set, I get an SqlException with one of the following messages:
- General network error. Check your network documentation.
- A severe error occurred on the current command. The results, if any,
should be discarded.
In the servers event log, I can find the following error:
Event Type: Error
Event Source: MSSQL$MYSERVER
Event Category: (2)
Event ID: 17052
Date: 25.07.2003
Time: 16:33:35
User: N/A
Computer: MYSERVER
Description:
Error: 17805, Severity: 20, State: 3
Invalid buffer received from client.
Data:
....
After reading some newsgroup posts, it seems to me that the problem also
occurrs when using binary data. Is there a fix for these problems?
Thanks,
Martin Bischoff
I'm using the SqlHelper class from microsofts data access application
block and have problems when trying to call a stored procedure that has
a TEXT parameter.
I'm using the following environment:
- SQL Server 2000 SP3a + Cumulative Patch (July 2003)
- .NET 1.0
- Data Access Application Block 1.0
The method SqlHelperParameterCache.DiscoverSpParameterSet returns a
SqlParameter with SqlDbType set to VarChar and Size set to
Int32.MaxValue. The problem seems to be in
SqlCommandBuilder.DeriveParameters.
When calling the stored procedure with the automatically discovered
parameter set, I get an SqlException with one of the following messages:
- General network error. Check your network documentation.
- A severe error occurred on the current command. The results, if any,
should be discarded.
In the servers event log, I can find the following error:
Event Type: Error
Event Source: MSSQL$MYSERVER
Event Category: (2)
Event ID: 17052
Date: 25.07.2003
Time: 16:33:35
User: N/A
Computer: MYSERVER
Description:
Error: 17805, Severity: 20, State: 3
Invalid buffer received from client.
Data:
....
After reading some newsgroup posts, it seems to me that the problem also
occurrs when using binary data. Is there a fix for these problems?
Thanks,
Martin Bischoff