Re: MDAC 2.8 - Command returning a Recordset in C++



Sorry about the empty post - hit the wrong button.

You are going about it slightly different than I would, which makes it
difficult to see a major problem, but try delay closing the connection
object until later in the routine. And see if that helps.

Also you never test pRst to make sure it isn't null before you access it.
You should at least make sure you actually retrieve something.

And what is the exact error message - "C00000005"?

-ralph


.