Comments on: WMI Code Creator https://thomaslarock.com/2011/01/wmi-code-creator/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Fri, 06 Jul 2012 13:20:05 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Anonymous Coward https://thomaslarock.com/2011/01/wmi-code-creator/#comment-16151 Wed, 04 Apr 2012 16:42:00 +0000 http://thomaslarock.com/?p=5185#comment-16151 I like the WMI Code Creator and have been using it for years. However, I’ve recently found that the open-source WMI Delphi Code Creator is far superior.

It’s open-source too: http://code.google.com/p/wmi-delphi-code-creator/

Don’t let the name fool you, it can generate code for querying WMI classes, executing WMI methods, and receiving WMI events in Microsoft C++, Borland C++, C#, Delphi, Free Pascal. Check it out, you’ll be glad you did.

]]>
By: March Madness – SQL Server System Tables – sysperfinfo | SQLRockstar https://thomaslarock.com/2011/01/wmi-code-creator/#comment-2144 Mon, 21 Mar 2011 14:53:22 +0000 http://thomaslarock.com/?p=5185#comment-2144 […] contained inside of Perfmon counters by using some simple T-SQL statements and not resorting to using WMI code or xp_cmdshell? Well today is your lucky day! Well, mostly your lucky day. Read on to find out why […]

]]>
By: Aaron Bertrand : The fallacy of preventing plagiarism https://thomaslarock.com/2011/01/wmi-code-creator/#comment-2143 Fri, 07 Jan 2011 22:04:03 +0000 http://thomaslarock.com/?p=5185#comment-2143 […] twitter discussions that resulted from an innocent post by Tom LaRock (blog | twitter) yesterday (original post).  This led to at least the following three posts, and maybe others I haven't noticed […]

]]>
By: Thomas LaRock https://thomaslarock.com/2011/01/wmi-code-creator/#comment-2142 Fri, 07 Jan 2011 19:37:20 +0000 http://thomaslarock.com/?p=5185#comment-2142 In reply to Aaron Bertrand.

Thanks Aaron, should be fixed now.

]]>
By: Aaron Bertrand https://thomaslarock.com/2011/01/wmi-code-creator/#comment-2141 Fri, 07 Jan 2011 19:04:01 +0000 http://thomaslarock.com/?p=5185#comment-2141 Just FYI the message for the RAISERROR you added toward the end of the code sample is missing a closing single quote.

]]>
By: Rhys https://thomaslarock.com/2011/01/wmi-code-creator/#comment-2140 Fri, 07 Jan 2011 16:59:03 +0000 http://thomaslarock.com/?p=5185#comment-2140 Yeah, I get your thinking (I just love Powerhsell to much). As you mention, using CLR to create a quick function, to retrieve these counters, shouldn’t take too long.

]]>
By: Thomas LaRock https://thomaslarock.com/2011/01/wmi-code-creator/#comment-2139 Fri, 07 Jan 2011 14:27:24 +0000 http://thomaslarock.com/?p=5185#comment-2139 In reply to Rhys.

Rhys,

Thanks for the link. The problem is that I need to get at O/S counters from my database connection. So, if I am connected to the db already, then the natural inclination is to use TSQL. WHile POSH can get the job done, I can’t call it from TSQL, can I? (and boy, wouldn’t it be nice if I could!)

]]>