tags:

views:

480

answers:

1

Hello

I have a classic ADO command which execs a sproc and returns a RecordSet. This is being executed from a VB.NET using the PIA.

However when I .Execute the command, the result returned is not an ADODB.Recordset but a System.__ComObject.

Wonder if anyone has seen similar behaviour?

+1  A: 

Isn't that just the .NET interop wrapper for any COM object? GetType.Type will always return System.__ComObject. You can TryCast or DirectCast to a more useful type.

MarkJ
You're spot on. I found out that I needed to make sure that the methods passing this recordset about were all strongly typed, or else it would fall over at runtime.
Duncan