PRB: 'Unspecified Error' Err Using ADO Data Marshalling w/ DCOM (196959)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.0
This article was previously published under Q196959 SYMPTOMS
When you executing an ActiveX Data Objects (ADO) UpdateBatch on a
disconnected recordset through Microsoft Transaction Server (remote) or
Distributed Component Object Model (DCOM), the following error may occur:
Unspecified Error.
If you are trying to assign a date value in a recordset with quotes around
it, you get an 'Unspecified Error' only when attempting to do an
UpdateBatch on the recordset remotely. This problem does not occur if the
ADO component is running on the same computer as the client .exe.
RESOLUTION
There are two possible workarounds:
- Upgrade both the server and the client to Microsoft Data Access Objects 2.1 Service Pack 2 or later. The "Unspecified error" does not occur with a client and a server both using Microsoft Data Access Objects 2.1 Service Pack 2 or later.
- Put # signs around the date value when assigning to the resultset field. For example, rs.Value = #12/31/9999# instead of rs.Value = "12/31/9999."
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem has been fix in Microsoft Data Access Objects 2.1 Service Pack 2.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
186342 HOWTO: Create a 3-Tier App using VB, MTS and SQL Server
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbADO210sp2fix kbDatabase kbDSupport kbprb KB196959 |
---|
|