JCARPENTER
Programmer
I have a couple of stored procedures which use
temporary tables or table variables. I want
to access a returned record set using ADO (VC++ vein).
I can get back recordsets from SP's that don't use
temp tables and from SP's that have temp tables as
long as I don't insert any rows into them. But
if I actually use the tables, the command object's
Excute method returns a recordset that I can't access.
Any attempt to call a method (even checking for EOF)
throws a _com_error exception whose Description is
"Operation is not allowed when the object is closed."
The call works if I do a select from the temp table
in the proc without actually inserting any rows.
This is just too weird. Can someone help?
Thanks,
Jim Carpenter
temporary tables or table variables. I want
to access a returned record set using ADO (VC++ vein).
I can get back recordsets from SP's that don't use
temp tables and from SP's that have temp tables as
long as I don't insert any rows into them. But
if I actually use the tables, the command object's
Excute method returns a recordset that I can't access.
Any attempt to call a method (even checking for EOF)
throws a _com_error exception whose Description is
"Operation is not allowed when the object is closed."
The call works if I do a select from the temp table
in the proc without actually inserting any rows.
This is just too weird. Can someone help?
Thanks,
Jim Carpenter