SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSIS & WMI Data Reader Task Query


SSIS & WMI Data Reader Task Query

Author
Message
dave-dj
dave-dj
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2674 Visits: 1149
try downloading the WMI code creator:

It will help you write the queries you need to retrieve the data your after.

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2CC30A64-EA15-4661-8DA4-55BBC145C30E

_____________________________________________________________________________
MCITP: Business Intelligence Developer (2005)
rdeheld-535532
rdeheld-535532
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 457
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
dave-dj
dave-dj
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2674 Visits: 1149
:-D

Cool. Nice to see it's been useful and aided your daily routines.

What details are you recording on the physical processors?

_____________________________________________________________________________
MCITP: Business Intelligence Developer (2005)
jamin_za
jamin_za
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 333
This was amazingly helpful - 5 starts!
dbadude78
dbadude78
SSC-Enthusiastic
SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)

Group: General Forum Members
Points: 187 Visits: 707
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
dave-dj
dave-dj
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2674 Visits: 1149
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..

Step 6 - Building The Server Query Loop
Now 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.


make sure you are mapping the variable User::ServerConnString to an index value of 0

_____________________________________________________________________________
MCITP: Business Intelligence Developer (2005)
dbadude78
dbadude78
SSC-Enthusiastic
SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)

Group: General Forum Members
Points: 187 Visits: 707
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
dave-dj
dave-dj
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2674 Visits: 1149
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 wmi_conn connection manage review the connection string expression.

let me know what you have in there

is 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

_____________________________________________________________________________
MCITP: Business Intelligence Developer (2005)
dbadude78
dbadude78
SSC-Enthusiastic
SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)SSC-Enthusiastic (187 reputation)

Group: General Forum Members
Points: 187 Visits: 707
Hi

I finally got there at the end, it was something in the WMI connection manager

thanks again :-)
dave-dj
dave-dj
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2674 Visits: 1149
No probs - glad you got it working

_____________________________________________________________________________
MCITP: Business Intelligence Developer (2005)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search