BUG: INSERT .. EXEC sp_OAMethod Fails if 255 or More Characters are Returned (264682)
The information in this article applies to:
- Microsoft SQL Server 6.5
- Microsoft SQL Server 7.0
This article was previously published under Q264682
BUG #: 17749 (SQLBUG_65)
BUG #: 33934 (SQLBUG_70)
SYMPTOMS
You can use the OLE Automation system stored procedure sp_OAMethod with a SQL INSERT...EXEC statement to insert the results of the OLE object method called. However, if the records consist of 255 or more characters for a table column, the insert operation fails with the following OLE Automation error message:
HRESULT: 0x8004271d
Source: ODSOLE Extended Procedure
Description: Error in srv_sendrow.
If 254 characters or less are returned, the insert operation is successful.
WORKAROUND
The OLE object method should separate the character data string into chunks of 254 characters or less before returning the results.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 6.5 and 7.0.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbBug kbCodeSnippet kbpending KB264682 |
---|
|