Online Safety Community

Hello,

SSIS includes two special tasks that enable you to query system information and monitor system events: the WMI Data Reader Task and the WMI Event Watcher Task. These tasks are especially useful for system management, as you will discover with examples later in External Management and WMI Task Implementation Topic. WMI uses a specialized query language known as WQL, which is similar to SQL, to obtain information about a Windows system. WMI has many features and capabilities, so we won’t be able to cover all of them, but here are a few common uses:

  • You can get information about files and directories, such as file size, or enumerate the files in a folder. You can also monitor the file system for events, such as whether a file has been modified recently. This could be required in a package if your package is importing data from a CSV or XML file. A change in the file could trigger tasks to fire in your package.
  • You can determine whether an application is currently running. In addition, you can find out how much memory that application is using or how much processor time it has used. This is useful if your package needs to know whether a companion process is running before creating some sort of output result.
  • You can obtain information about users in Active Directory, such as whether a user is active or has certain permissions to a resource. This is useful in a package if information about a user or machine on the network is required for your package’s execution.
  • You can control services that are running on a computer system and actually start and stop them as required. This is useful if your package needs to stop a service during a data transfer.

This is just a small sample of the information you can glean from a computer system. You can obtain information not only about the current system but also about remote systems. As you can see, this gives you access to a great deal of information that could be used in the execution of an SSIS package. For example, you could determine if enough disk space existed on a drive before copying a backup file from a remote system to the current system. You could also monitor a file for updates and automatically import the changes into a database table. Later in External Management and WMI Task Implementation Topic you will see how to actually implement these two examples. For more information on the WMI system, visit HTTP://MSDN.MICROSOFT.COM/ENUS/LIBRARY/WINDOWS/DESKTOP/AA394582(V=V....

Article Credits: Mindmajix

Views: 11

Reply to This

Take our poll!

Take our poll!

Latest Activity

kate smith posted blog posts
3 hours ago
Adam Fleaming posted blog posts
5 hours ago
John Robinson posted a blog post

Training and Development is a highly developed and evolved, broad body of knowledge. Many employees place themselves at a disadvantage vis-à-vis their colleagues in the absence of the right professio…

Training and Development is a highly developed and evolved, broad body of knowledge. Many employees place themselves at a disadvantage vis-à-vis their colleagues in the absence of the right professional training and development. If employees have to consistently close gaps in their learning, they need to keep upgrading their knowledge and skills. They should also use training…See More
yesterday
Roger Steven posted a blog post

Ensuring compensation-focused compliance with Stark Law considerations

Stark Law compliance is now more than just a compliance issue. It has grown to become an Enterprise Risk Management matter, if the substantial awards and settlements in recent enforcement actions are anything to go by. For healthcare organizations that develop and implement provider contracts; managing their compliance and…See More
Tuesday

Forum

What is Class Structure in Pega?

Class contains the rule by way of which objects behave. outline rules such as houses, sports, flows, html paperwork, etc. to be had to different subordinate classes. lessons are organized into a…Continue

Started by Soujanya Naganuri on Monday.

How to Concatenate Two Tables in QlikView

Table combining and concatenationConcatenate appends the rows of one table to another. Concatenate never merges any rows. The number of rows in a concatenated table is always the sum of the rows of…Continue

Tags: datafields, developers, qlikview

Started by Soujanya Naganuri Jun 30.

SQL Server Windows Management Instrumentation Tasks

Hello,SSIS includes two special tasks that enable you to query system information and monitor system events: the WMI Data Reader Task and the WMI Event Watcher Task. These tasks are especially useful…Continue

Tags: Task, WMI, Server, SQL

Started by Madison Quinn Jun 20.

difference between NEBOSH and IOSH

NEBOSH “National Examination Board in Occupational Health and Safety”IOSH “Institution…Continue

Tags: kerala, IGC, NEBOSH

Started by mani May 31.

What's your favorite motivational/safety quote? 98 Replies

Favorite Motivational Quote: If you want something, you'll find a way - If not, you'll find an excuse.Favorite Safety Quote: Don't learn safety by accident!Continue

Started by Michelle Sears. Last reply by David R Snell Apr 26.

Badge

Loading…

© 2017   Created by Safety Community.   Powered by

Badges  |  Report an Issue  |  Terms of Service