Re: Fascinating DB Problem
- From: "Edward M. Kennedy" <nospam@xxxxxxxxxxxxxxx>
- Date: Tue, 24 Jan 2006 17:36:04 -0500
"Jeff Davis" <jd_home@xxxxxxxxxx> wrote
>A query to a db returns a recordset. The first time the recordset is inspected SOME of the fields' data values are
>present. SOME aren't. I look at the table in the db monitor and ALL the fields have values. I insert a trace loop into
>the code. The trace loop reports ALL the fields have values. I remove the trace loop. The problem recurs. I change the
>trace loop to an assignment statement which I ignore. The problem is solved.
>
> What #1 Son refers to as a Heidegger's Cat Problem.
I had a similar problem trying to read an Excel spreadsheet in
VB. I don't remember what fixed it.
If you were accessing a complex stored procedure on SQL Server,
I would say "SET NOCOUNT ON".
If you are using an ADO recordset directly to the table, I would
make sure your recordset is not updatable, and maybe do rst.movelast
and rst.movefirst.
If you aren't using mickeysoft, congratulations.
--Tedward
.
- References:
- Fascinating DB Problem
- From: Jeff Davis
- Fascinating DB Problem
- Prev by Date: Re: Top Five Coldplay Songs
- Next by Date: Re: On The Road As A Passenger
- Previous by thread: Re: Fascinating DB Problem
- Next by thread: Linux Question
- Index(es):
Relevant Pages
|