简体   繁体   中英

VB.NET call ADODB.Command.Execute - not returning Recordset

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM