Re: Invalid attempt to read when no data is present



No, because it has no row to acquire a null value from. This is why
dtrReceivers.Read() returns a false when it is out of rows to read.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Dave" <Dave@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4FBE7619-1E9B-46CF-B2EA-F89BB2121FFE@xxxxxxxxxxxxxxxx
> I'm using a datareader to get data from an sql table. The line that gives
> the
> error is as follow,
>
> dtrReceivers["Site_V"].ToString()
>
> which gives the error,
>
> Invalid attempt to read when no data is present
>
> which is correct. The line works when data is in the row. But shouldn't
> the
> data reader return a null! How can I check to see if data is in the row?
>
> Thanks in advance,
>
> David


.



Relevant Pages

  • Re: This takes the cake! $500 shipping costs for a Stanley plane!
    ... Headers show different ISP, different OS, different browser. ... >>I suppose it's just coincidence that david at invalid showed up right>after BAD finally disappeared after a round of nymshifting and>generally shitting all over the wreck, ... Doug Miller ...
    (rec.woodworking)
  • Re: This takes the cake! $500 shipping costs for a Stanley plane!
    ... >>>> in reading or viewing anything on the page below the image of the plane. ... I suppose it's just coincidence that david at invalid showed up right ...
    (rec.woodworking)
  • Re: Object class is invalid for this container
    ... > get the error message "Object class is invalid for this container". ... > Obviously that's a mistake, because the class already exists in a class ... Prev by Date: ...
    (microsoft.public.fox.programmer.exchange)
  • RE: David
    ... I've modified permissions ... > is there a non-programmatic way to do this in SharePoint? ... > David. ... Prev by Date: ...
    (microsoft.public.sharepoint.portalserver)
  • Re: What is the dual of l^infty ?
    ... hence the dual is the space of complex Borel measures ... David C. Ullrich ... Prev by Date: ...
    (sci.math)