﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Dave Lumley  / SSIS &amp;amp; WMI Data Reader Task Query / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 04:06:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>No probs - glad you got it working</description><pubDate>Fri, 26 Oct 2012 11:25:03 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi I finally got there at the end, it was something in the WMI connection managerthanks again :-)</description><pubDate>Fri, 26 Oct 2012 05:10:06 GMT</pubDate><dc:creator>dbadude78</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>stick a breakpoint on the WMI task and check the variable value pre wmi query execution and check the value is ok Also on the [b]wmi_conn[/b] connection manage review the connection string expression.let me know what you have in thereis short the problem is the value isn't being set in the connection string so it's pin pointing where the server name is getting lost</description><pubDate>Thu, 25 Oct 2012 08:23:08 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi Thanks for the quick response.The source table [server_query_list] has the server name without a forward slash e.g. [Servertest]. The ServerConnString is set to 0.thanks </description><pubDate>Thu, 25 Oct 2012 06:20:41 GMT</pubDate><dc:creator>dbadude78</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi,looking at the error, it's not picking up the servername correctly, so check the source table column names and inparticular look at step 6 again..[quote]Step 6 - Building The Server Query LoopNow we have server to query, we can build the loop to iterate through the server list.Add a For each Loop Container to the data flow work area and name it FELC Server Query. Double-Click the For Each Loop Container and select Collection. On the Collection form,•set the ADO Object Source Variable to User::ServerList.•Select the Enumeration mode to Rows in the first table•Under Variable mappings, map the Variable User::ServerConnString to index 0.[/quote]make sure you are mapping the variable [b]User::ServerConnString [/b]  to an index value of [b]0[/b]</description><pubDate>Thu, 25 Oct 2012 05:37:34 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi I have followed this article step by step and get the following error. Error at DiskUsage: The connection "ServerName=\\;Namespace=\root\cimv2;UseNtAuth=True;UserName=;" is not found. This error is thrown by Connections collection when the specific connection element is not found.Any ideas?thanks</description><pubDate>Thu, 25 Oct 2012 05:02:51 GMT</pubDate><dc:creator>dbadude78</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>This was amazingly helpful - 5 starts!</description><pubDate>Thu, 22 Mar 2012 03:12:53 GMT</pubDate><dc:creator>jamin_za</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>:-DCool. Nice to see it's been useful and aided your daily routines.What details are you recording on the physical processors?</description><pubDate>Wed, 03 Aug 2011 14:17:36 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi great article Just modified it a bit to get a inventory via WMI of all the Physical  Processors instead of cores, works great and added it into the DBA_MORNING_CHECKS ssis package</description><pubDate>Wed, 03 Aug 2011 03:09:49 GMT</pubDate><dc:creator>rdeheld-535532</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>try downloading the WMI code creator:It will help you write the queries you need to retrieve the data your after.[url]http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2CC30A64-EA15-4661-8DA4-55BBC145C30E [/url]</description><pubDate>Fri, 27 May 2011 08:34:30 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Does it tell you what conponent is failing?You need to create a select query for what ever hardware / software values you want. like [quote]SELECT FreeSpace, DeviceId, Size, SystemName, Description FROM in32_LogicalDiskwhere DriveType= 3(DriveType = 3 filters the query to only the machines physical drives and excludes mapped network drives) [/quote]It means that you may need to use more than one query, which of course will complicate your package, but the general process should be the same, create your variables and assign your values to the variables in the parameter mappings</description><pubDate>Fri, 27 May 2011 08:10:11 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>[quote][b]dave-dj (8/31/2009)[/b][hr]Comments posted to this topic are about the item [B]&amp;lt;A HREF="/articles/Integration+Services+(SSIS)/67428/"&amp;gt;SSIS &amp; WMI Data Reader Task Query&amp;lt;/A&amp;gt;[/B][/quote]This article is really helpful. I need to retrieve Hardware and software information form my domain pcs and store it into sql server I have initially try your functionality but the package is throwing error of Bulk copy insert error. Kindly please suggest what should i do to overcome these error. and how can i get all my details of Hardware and Software information.</description><pubDate>Fri, 27 May 2011 07:53:20 GMT</pubDate><dc:creator>paras_rangraj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi all,I have just created this package, and all works well when doing it locally; however as soon as I try and use the IP/name of one of our servers it fails with:Error: 0xC002F304 at WMI_DRT Server Disk Usage, WMI Data Reader Task: An error occurred with the following error message: "Value does not fall within the expected range.".My table on my local instance has both localhost and a servers ip address; the whole thing loops through fine recording the details of the localhost, but then it fails with the server. What sort of things would raise this type of message? I have done a google, but am now swimming around in excess information and need to get some clarity - hopefully the wise people here can assist :w00t:The server that I am connecting to is on a different subnet. Firewall is not enabled on the OS, but there is a physical firewall that could be blocking ports if there are specific ports required for this. For testing purposes I am using the username/password of the local machine, as these servers do not talk to our AD environment.Any ideas? Thanks in advanceCheersTroy</description><pubDate>Mon, 19 Jul 2010 17:53:06 GMT</pubDate><dc:creator>TroyG</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi Vinesh,I have test the connection for connections that do not use Windows Authentication and found 2 things:1.  Despite that fact that you are specifying the servername in the connection string, when you define the user name, you need to put in the machine name prior to the user name.2.  If fail to add in ";" after the password - then BIDS will fail to evalute the expression.so as an example you connection string expression should look something like this if your server was called [b]SQLDBSERVER.domain.network.org[/b]:[code="other"]"ServerName=\\\\"  + @[User::ServerConnString] + ";Namespace=\\root\\cimv2;UseNtAuth=False;UserName=SQLDBSERVER\\MyUserName;Password=MyPassword;"[/code]so the connection string used would be [code="other"]ServerName=\\SQLDBSERVER.domain.network.org;Namespace=\root\cimv2;UseNtAuth=False;UserName=SQLDBSERVER\MyUserName;PassWord=MyPassword;[/code]If you are using local accounts for each machine, then perhaps you may want to think about storing the user name and passwords in SQL server (in the server list table), and pulling those in as extra variables..........Personally, I would recommend going down the Windows Authentication route, and using a domain priviledged credential to run the job in sql server, rather than storing username &amp; passwords with admin rights in sql server tables.Let me know how you get on</description><pubDate>Thu, 15 Apr 2010 09:13:01 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi Dave,I know this is a very old post but this is exactly what I want and I have also created my package almost similar to the one you have explained in your posts and your SSIS &amp; WMI Data ReaderTask Query article. The difference is that I am assigning the Connection String dynamically with the credentials.My connection string looks exactly like you have explained[b]ServerName=\\123.12.123.12;Namespace=\root\cimv2;UseNtAuth=False;UserName=user_name;PassWord=pwd;[/b]. And I pass the @User::StringConnString variable to the ConnectionString property of the WMI connection.I get an "Access Denied" message for every server except my local machine when I try to use the WMI Data Reader Task in an FELC.I tested out the package without the FELC trying each server at a time to make sure my connection string is of the correct format. I get the statistics for 2 of the servers and my local machine, but an "Access Denied" message for all other servers and a machine in the same network as mine where I was given administrative access.I really do not understand where the error really is and what settings I need to check for on all the other servers where I get the error. I see in your package that you mention of a bug in SSIS and a solution if we try to use a dynamic connection string. I do not know if I understand it correctly. If my Server Computer Name is "SQLDBSERVER" and the network is domain.network.org, should my ConnectionString property now look like this "[b]\\\\SQLDBSERVER.domain.network.org" + @[User::ServerConnString][/b]?Your article was of great help to solve many issues I had with the FELC. Hope to hear from you soon. Thanks in advance.Vinesh</description><pubDate>Sun, 11 Apr 2010 12:13:53 GMT</pubDate><dc:creator>vineshdnair</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>that sounds like it's not picking up your passed servername variable or it can't find the server First off, if you haven't already done it, create another package with a WMI task with the same query, but manually define one of the servers you want to connect to, to make you it connects ok.Are you storing the server name in a database table, prior to calling the package?Could you send me note on how you have setup your SSRS report to pass the servername variable to the package, and call the package.  I'll try and set something up here to do the same and see if I can find the problem.(Ps sorry i'm only just replying I've been on holiday for a week :-D )</description><pubDate>Mon, 01 Mar 2010 02:06:36 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi Dave,I followed all the steps as mentioned in the PDF, but everytime, it returns the local system disk space details to data table, and not the remote servers listed in the Servers table.  Pls advice. Thanks:doze:</description><pubDate>Wed, 24 Feb 2010 05:05:42 GMT</pubDate><dc:creator>sujiakm</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Thanks a lot.. thanks for the detailed PDF with screenshots.Could you please guide me on how to run this query against an specific server through SSRS.  Ie., I need to select the Servername (datasouce) on SSRS and pass that value to this SSIS package and then the package should collect the data for that particular server and store the data to a table.  From there the data should be displayed in a Report format.Please guide me on the above approach or if anyother way to get it done.Thanks in advance.:-)</description><pubDate>Wed, 24 Feb 2010 02:57:43 GMT</pubDate><dc:creator>sujiakm</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi Looking at your error, I say it's either your variable is defined or your server connection string blank - possibly as a result of the variable not being mapped to the right index.Couple of initial things to check, 1. have you defined the User::ServerConnString in the variables pane?2. Have you defined the scoped the variable to Package level. 3. If your source table where your getting your server address from has more than 1 column, then make sure you map the variable [b]User::ServerConnString[/b] to the correct column (i.e. table column 1 is index 0, table column 2 is index 1 etc etc.Also, I'm not sure if you've looked at the pdf download, or just the main forumn article, but my pdf is probably a little clearer as I used screen shots etc.  Here's the download [url]http://www.sqlservercentral.com/Files/WMI%20QUERY%20Article.pdf/3897.pdf[/url]Let me know how you get on.:hehe:</description><pubDate>Mon, 22 Feb 2010 12:27:53 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi,I am unable to procced further with the WMI_Conn properties.  I receive the below error while setting the connection string for WMI_Conn.-----------------------------------The variable "user::ServerConnString" was not found in the Variables collection. The variable might not exist in the correct scope.Attempt to parse the expression ""servername=\\\\" +@[user::ServerConnString] +";Namespace=\\root\\simv2;UserNtAuth=True;username=;"" failed and returned error code 0xC00470A6. The expression cannot be parsed. It might contain invalid elements or it might not be well-formed. There may also be an out-of-memory error.-------------------------------------I am stuck at this step.Thanks in advance:-)</description><pubDate>Mon, 22 Feb 2010 03:53:05 GMT</pubDate><dc:creator>sujiakm</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Sorry, your perfectly right, the FELC for step 6 should be on the control flow screen. Bit of a typo I'm afraid. If you get any other problems then let me know.</description><pubDate>Mon, 14 Sep 2009 02:35:12 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Excellent article, Dave, and the timing couldn't be better as I have recently been tasked with producing Server availability reports, which I will use TempDB creation date for. I had already done the first three steps when I found your article. Steps 4 and 5 are straightforward, but I ran into a snag with Step 6 - Building the Server Query Loop. You say to add a For each Loop Container to the data flow work area, but the only Foreach  Loop Container I can find are in the control flow items. I was using BIDS 2008 and thought perhaps things got changed, so I tried the same thing with BIDS 2005, but the FeLC is in the same place. What am I missing? Using the FeLC in the Control Flow, I had some problems initially. I don't have a lot of SSIS experience yet, and it took a lot of poking and prodding to find that Ihadto click on the words "Foreach File Enumerator" to see the pull down list where I found "Foreach ADO Enumerator" which then gave me the ADO object source variable window where I foung User::ServerList to select, as well as the radio buttons to select Rows in the frist table.But it remains in my Control flow tab, not my Data flow tab. I'll see what happens in Step 7.Again thanks for a super article.</description><pubDate>Fri, 11 Sep 2009 12:42:41 GMT</pubDate><dc:creator>Steve Margolis</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>I'm just going to use this to check some remote machines once a day for now,  nothing mission critical.</description><pubDate>Tue, 01 Sep 2009 12:53:55 GMT</pubDate><dc:creator>darryl_marshall</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>For you guys who are implementing this - what interval are you running?I have it running every 6 hours watching 3 of our most critical servers, each with 3 logical disks (all VMs).We intend on coming up with a chart to show trends for day/week/month.How are you guys planning to use it?</description><pubDate>Tue, 01 Sep 2009 12:42:37 GMT</pubDate><dc:creator>robmasonjr67</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>I agree, good article, with only one real type that was easy to fix..CEWII</description><pubDate>Tue, 01 Sep 2009 09:53:02 GMT</pubDate><dc:creator>Elliott Whitlow</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>great article.  Having a look at using at the moment.  Love that you included a pdf with more details and screenshots.</description><pubDate>Tue, 01 Sep 2009 08:24:52 GMT</pubDate><dc:creator>darryl_marshall</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Excellent article - implementing this as we speak...Change syntax of query from:SELECT FreeSpace, DeviceId, Size, SystemName, Description FROM in32_LogicalDiskwhere DriveType= 3toSELECT FreeSpace, DeviceId, Size, SystemName, Description FROM win32_LogicalDisk where DriveType= 3Thanks!</description><pubDate>Tue, 01 Sep 2009 07:58:30 GMT</pubDate><dc:creator>robmasonjr67</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Thanks :-D</description><pubDate>Tue, 01 Sep 2009 05:38:14 GMT</pubDate><dc:creator>dave-dj</dc:creator></item><item><title>RE: SSIS &amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Hi,Very good article!!! :)Actually, as you mentioned in this article, WMI is very least used but the most powerful technique. It will be good if the article contain the basic idea about it with some link to WMI. It will be more helpful to the reader to have a thought about WMI as it is not widely used.But for those who are aware with WMI, this is the best article!!!Thanks for sharing such.Good Luck.</description><pubDate>Mon, 31 Aug 2009 23:50:41 GMT</pubDate><dc:creator>Kruti Kansara</dc:creator></item><item><title>SSIS &amp;amp; WMI Data Reader Task Query</title><link>http://www.sqlservercentral.com/Forums/Topic780441-1634-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Integration+Services+(SSIS)/67428/"&gt;SSIS &amp;amp; WMI Data Reader Task Query&lt;/A&gt;[/B]</description><pubDate>Mon, 31 Aug 2009 23:42:57 GMT</pubDate><dc:creator>dave-dj</dc:creator></item></channel></rss>