I have a script in SSIS. I have a package that is simply moving data from a flatfile to a database. I have a specific location and I want to execute this package when the file is in a folder.
WQL SQL-, , , :
SELECT * FROM __InstanceCreationEvent WITHIN 10 WHERE TargetInstance ISA "CIM_DirectoryContainsFile" and TargetInstance.GroupComponent= "Win32_Directory.Name=\"c:\\\\WMIFileWatcher\""
, escaping, .
, , .
, For EvalExpression, true == true.
PowerShell SSIS . , .
WMI , / . ForEach Loop Container Execute SQL Wait, For Loop Container.
ForEach, , . - Script, Files_Found - , .
ForEach Loop Container SQL Execute , . WAITFOR DELAY '00:05:00' 5- .
WAITFOR DELAY '00:05:00'
ForEach Loop Execute SQL For Loop, Files_Found.
- - , , , WMI.