Re: Recordset.open with existing Records in the DB
ghosthunter_at_gmx.at
Date: 01/18/05
- Next message: Sylvain Aufrère: "How to know if a transaction is launched?"
- Previous message: Brian Morris: "Re: ADO/ALTER TABLE problem"
- In reply to: Stephen Howe: "Re: Recordset.open with existing Records in the DB"
- Next in thread: ghosthunter_at_gmx.at: "Re: Recordset.open with existing Records in the DB"
- Reply: ghosthunter_at_gmx.at: "Re: Recordset.open with existing Records in the DB"
- Messages sorted by: [ date ] [ thread ]
Date: 18 Jan 2005 00:28:20 -0800
I .close the objects wenn finishing der Program, but I don't set them
zu Nothing, will try this one but I think that will change nothing.
I took a look on my Recordset (with Cursortype=client and
adOpenDynamic)
rszahlung->ActiveConnection->Cursorlocation = adUseServer
rszahlung->Cursorlocation = adusClientBatch
rszahlung->CursorType = adOpenStatic
and after the .open I get 2Errors in
rszahlung->ActiveConnection->Errors
1.
Error Number: -2147217887
Error Message: Multiple-step OLE DB operation generated errors. Check
each
OLE DB status value, if available. No work was done.
Error Source: Microsoft OLE DB Provider for ODBC Drivers
2.
Error Number: -2147217887
Error Message: The provider does not support the property.
Error Source: ADODB.Connection
rszahlung->PageCount & rszahlung->Recordcount: The E_FAIL Error from my
1st Post.
Stephen Howe wrote:
> "Gh0st" <ghosthunter@gmx.at> wrote in message
> news:25c9c5e0.0501130257.3d31a243@posting.google.com...
> >I have a strange Problem.
> >
> > If i open my empty DB an read the Recordset, make some AddNew und
> > Update it everythink works fine.
>
> Are you sure? Perhaps the problem is here at this point.
> Hypothesis : Perhaps you are not closing your Recordset and
Connection
> properly after doing the update the 1st time and when you restart the
2nd
> time the DB "knows" this. It is a possibility.
>
> When you have finished with the Recordset & Connection object you
should
> have
>
> rsZahlung.Close
> Set rsZahlung = Nothing
> conBeweg.Close
> Set conBeweg = Nothing
>
> > rsZahlung.CursorLocation = adUseClient
> > rsZahlung.Open "SELECT * FROM CIRHERZAHLUNG", conBeweg,
adOpenDynamic,
> > adLockOptimistic, adCmdText
>
> You will never get this CursorType. ADO is allowed to coerce
CursorType and
> LockType into something else if the requested type is not available.
You can
> print out what you did get _AFTER_ a successful Open().
>
> For client-sided cursors, CursorType is always adOpenStatic. If you
want the
> other cursor types (which are subject to Provider and query), it has
to be
> server-sided.
>
> Stephen Howe
- Next message: Sylvain Aufrère: "How to know if a transaction is launched?"
- Previous message: Brian Morris: "Re: ADO/ALTER TABLE problem"
- In reply to: Stephen Howe: "Re: Recordset.open with existing Records in the DB"
- Next in thread: ghosthunter_at_gmx.at: "Re: Recordset.open with existing Records in the DB"
- Reply: ghosthunter_at_gmx.at: "Re: Recordset.open with existing Records in the DB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|