FIX: CreateRecordset Method of Datafactory Fails w/ Text Field (192138)
The information in this article applies to:
- Remote Data Service for ADO 1.5
- Remote Data Service for ADO 2.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 1.5
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP1
This article was previously published under Q192138 SYMPTOMS
With a RDSServer.DataFactory component, build a disconnected recordset containing a text field greater then 32767 bytes, using the CreateRecordset method. This scenario creates the following error:
Invalid Procedure Call or Argument.
CAUSE
At present the column settings should adhere to the following constraints,
which clearly show that the third parameter is an integer whose value
should be less then or equal to 32767:
Column Name : String (BSTR)
Column Type : Integer (VT_I2)
Column Size : Integer (VT_I2)
Column IsNullable : Bool (VT_BOOL)
RESOLUTION
The workaround is to set the field size greater then 255 bytes. This
automatically converts the field type to adLongVarChar and can hold more than a 2 MB string.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in MDAC version 2.1 SP2 and later.
REFERENCES
RDS Help; search on: "CreateRecordset"
Modification Type: | Minor | Last Reviewed: | 3/2/2005 |
---|
Keywords: | kbbug kbDatabase kbDSupport kbMDAC210SP2fix kbMDACNoSweep KB192138 kbAudDeveloper |
---|
|