December 3, 2015 at 12:06 am
Comments posted to this topic are about the item How to execute a Powershell script via SSIS
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
December 3, 2015 at 6:45 am
Personally I think executing Powershell scripts within SSIS sets a really bad precedent. There is probably a better solution. Just my opinion, but I would never allow it in my shop. Just because you can doesn't mean you should. SSIS is an ETL tool not a programming language. If you need to use PoSH embedded to start turning things on and off or get WMI type stuff then you need to think through your solution.
December 3, 2015 at 10:06 pm
stan.geiger (12/3/2015)
Personally I think executing Powershell scripts within SSIS sets a really bad precedent. There is probably a better solution. Just my opinion, but I would never allow it in my shop. Just because you can doesn't mean you should. SSIS is an ETL tool not a programming language. If you need to use PoSH embedded to start turning things on and off or get WMI type stuff then you need to think through your solution.
Ask anyone and they'll tell you that I'm no fan of PoSh or SSIS. That, notwithstanding, I can actually see why you might want to call PowerShell from SSIS. For example, you may want to run a file through the gambit of a CSVIMPORT followed by a CSVEXPORT to "normalize" the delimiters and double quotes in an otherwise difficult to import file. Yes, I suppose that you could import the file using one of many tricks in SSIS but PoSh would make things easy for such a thing.
I can also see calling PoSh loop to step through servers via WMIC to gather up server health information (for example, free space, % Free, and "IsDirty" bits for all disks on all servers) and have SSIS dump it to a table.
Remember that SSIS isn't just an ETL tool. It's also a "Process Control" tool.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 7, 2015 at 3:36 am
stan.geiger (12/3/2015)
Personally I think executing Powershell scripts within SSIS sets a really bad precedent.
that's your opinion and you're entitled to it.
stan.geiger (12/3/2015)
There is probably a better solution. Just my opinion, but I would never allow it in my shop. Just because you can doesn't mean you should.
there may well be a better solution, the guide shows how to execute a posh script as this is something that I've seen issues with across many forums.
stan.geiger (12/3/2015)
SSIS is an ETL tool not a programming language.
no it's not a pure ETL tool, as mentioned already it's a process control tool
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply