OLE DB - Reading Memo fields from Access

OLE DB - Reading Memo fields from Access

Post by Keith Pool » Fri, 31 Mar 2000 04:00:00



Help!
  I'm trying to read a memo field from Access using OLE DB.  It sys the
type of the field is an IUnknown (DBTYPE_IUNKNOWN) - but I can't do a
QueryInterface on it (it just fails with a "privileged instrution"
execption) - does anybody know what to do with this type??

Thanks
     KEEF

 
 
 

OLE DB - Reading Memo fields from Access

Post by Bob Beauchemi » Sun, 02 Apr 2000 04:00:00


You want to read the field through using ISequentialStream. There is a
Microsoft example called AOTBLOB.exe that illustrates this on Microsoft
support website.

Bob Beauchemin


Quote:> Help!
>   I'm trying to read a memo field from Access using OLE DB.  It sys the
> type of the field is an IUnknown (DBTYPE_IUNKNOWN) - but I can't do a
> QueryInterface on it (it just fails with a "privileged instrution"
> execption) - does anybody know what to do with this type??

> Thanks
>      KEEF


 
 
 

OLE DB - Reading Memo fields from Access

Post by kimrus.. » Wed, 05 Apr 2000 04:00:00


Thanks for the help. ISequential stream works
great for reading one memo field.

However, my access table now has 2 memo fields. I
generate a select statement, and obtain a
CRecordset object. Calling "MoveNext()" on this
object causes "E_NOINTERFACE" error when
connected to the database via ODBC.

I've tried forcing the memo fields to be at the
end of the column list in the select statement,
but this does not help.

Please HELP!!

Thanks in advance



> You want to read the field through using

ISequentialStream. There is a
Quote:> Microsoft example called AOTBLOB.exe that

illustrates this on Microsoft
> support website.

> Bob Beauchemin


message


MSGV22...
Quote:> > Help!
> > I'm trying to read a memo field from Access

using OLE DB. It sys the
Quote:> > type of the field is an IUnknown

(DBTYPE_IUNKNOWN) - but I can't do a
Quote:> > QueryInterface on it (it just fails with

a "privileged instrution"

Quote:> > execption) - does anybody know what to do
with this type??

> > Thanks
> > KEEF

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

OLE DB - Reading Memo fields from Access

Post by kimrus.. » Wed, 05 Apr 2000 04:00:00


Thanks for the help. ISequential stream works
great for reading one memo field.

However, my access table now has 2 memo fields. I
generate a select statement, and obtain a
CRecordset object. Calling "MoveNext()" on this
object causes "E_NOINTERFACE" error when
connected to the database via ODBC.

I've tried forcing the memo fields to be at the
end of the column list in the select statement,
but this does not help.

Please HELP!!

Thanks in advance



> You want to read the field through using

ISequentialStream. There is a
Quote:> Microsoft example called AOTBLOB.exe that

illustrates this on Microsoft
> support website.

> Bob Beauchemin


message


MSGV22...
Quote:> > Help!
> > I'm trying to read a memo field from Access

using OLE DB. It sys the
Quote:> > type of the field is an IUnknown

(DBTYPE_IUNKNOWN) - but I can't do a
Quote:> > QueryInterface on it (it just fails with

a "privileged instrution"

Quote:> > execption) - does anybody know what to do
with this type??

> > Thanks
> > KEEF

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

OLE DB - Reading Memo fields from Access

Post by Bob Beauchemi » Mon, 10 Apr 2000 04:00:00


This only works for a single storage object at a time. The behavior is
specified (read-only) by the provider property
DBPROP_MULTIPLESTORAGEOBJECTS. For ODBC and Jet 4 provider, this property is
set to false, meaning only one storage object can be open at a time.

You'll have to use multiple accessors, each with a single storage object and
read through each accessor individually, releasing the ISequentialStream
pointer from the first object before reading the second.

Bob Beauchemin


> Thanks for the help. ISequential stream works
> great for reading one memo field.

> However, my access table now has 2 memo fields. I
> generate a select statement, and obtain a
> CRecordset object. Calling "MoveNext()" on this
> object causes "E_NOINTERFACE" error when
> connected to the database via ODBC.

> I've tried forcing the memo fields to be at the
> end of the column list in the select statement,
> but this does not help.

> Please HELP!!

> Thanks in advance



> > You want to read the field through using
> ISequentialStream. There is a
> > Microsoft example called AOTBLOB.exe that
> illustrates this on Microsoft
> > support website.

> > Bob Beauchemin


> message


> MSGV22...
> > > Help!
> > > I'm trying to read a memo field from Access
> using OLE DB. It sys the
> > > type of the field is an IUnknown
> (DBTYPE_IUNKNOWN) - but I can't do a
> > > QueryInterface on it (it just fails with
> a "privileged instrution"
> > > execption) - does anybody know what to do
> with this type??

> > > Thanks
> > > KEEF

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

1. VB30: Accessing OLE-field in ACCESS-DB via OLE-VBX

Help !!!!

Can anyone tell me, how to access the content of a
OLE-field in a MS-Access database, without spooling the
data into a file first?

We have stored different OLE-Objects in an OLE-field of
an ACCESS-Table. Since these objects can be very large,
it's impossible to store them to file on the harddisk
and read them to the OLE-Control then (time consuming!!).
Isn't it possible to access the OLE-field directly, like
you can do it with bound controls? (eg. WIN-API)

?????????????????????????????????????????????   Thanks!

2. Informix, NT4 and IIS

3. how to update Memo field with OLE DB.

4. Data shaping error

5. Upsizing Access 8.0 Memo and OLE fields

6. Can not connect to the repository!!!

7. Help needed: reading access 2000 memo fields

8. Oracle seems a LITTLE concerned about System 11

9. Problem with reading Access memo field contents from adOpenForwardOnly recordset

10. Read/Write to OLE field in Access Table?

11. How to read/store bitmaps from Access OLE fields

12. ADO Update (using VB) of Memo fields in Access 97 DB

13. Reading Access 2.0 db on network w/read-only access