in reply to Re: WMI EventLog
in thread WMI EventLog

Does anyone actually have source code examples of using the WMI ODBC interface?

I've just spent the last six hours scouring Google and the best I could find was the sourceforge project Cricket that formerly had a module that used the ODBC interface, but was switched to the Win32::OLE for performance reasons.

(Maybe someone knows how to fetch the old module out of CVS, but I couldn't find it.)

--Solo

--
May the Source be with you.

Replies are listed 'Best First'.
Re: WMI ODBC
by theorbtwo (Prior) on Mar 17, 2003 at 01:45 UTC

    Perl source? No. MSDN has plenty of VB and C source, though, and it shouldn't be too hard to translate them. It was just an idea -- I've never actualy used WMI or it's ODBC interface.

    Sorry


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

      Well, I should have said that I also scoured MSDN and Google's newsgroup archive. I found MSDN code examples that use the COM interface, but none that I can find use ODBC. The SDK states the ODBC adapter is only supported for MSAccess, so I'm not surprised I can't find code examples on MSDN and kinda figured I'd have to look elsewhere.

      Can you post some links to the plenty of code using ODBC? I'm not picky about language at this point! :)

      TIA --Solo

      --
      You said you wanted to be around when I made a mistake; well, this could be it, sweetheart.