It's provider-specific and also depends on what interface the client
requests and which methods it calls, but the provider does have to support
the base OLE DB interfaces. So, unless all of the metadata that a data
source provides (think INFORMATION_SCHEMA info) is static and hard-coded
into the provider, it will be more often than ICommand::Execute. Or, on
ICommand::Execute and at connect time it will be doing more than just
connecting to the database and executing the command. Look at the OLE DB
property sets or IColumnsInfo/IColumnsRowset and others and figure out how a
provider would obtain that information.
Cheers, hope this helps,
Bob Beauchemin
http://www.SQLskills.com/blogs/bobb
"gilad" <giladv@yahoo.com> wrote in message
news:1155018826.545822.198360@m73g2000cwd.googlegroups.com...
|