|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, November 08, 2012 1:57 PM
Points: 7,
Visits: 30
|
|
I find Powershell can do almost everything. I just try to generate PDF or excel from Reporting service via web service call from Powershell.
I use Sql agent to run powershell on production. How do you usually scheudle PowerShell script? What are pros and cons?
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Monday, May 20, 2013 1:07 PM
Points: 18,733,
Visits: 12,332
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 1:00 PM
Points: 3,459,
Visits: 2,535
|
|
RBarryYoung (6/24/2012)
Phil Factor (6/24/2012)
Jeff, if you think that PowerShell is equivelent to VBA/VBScript, then you haven't tried PowerShell hard enough. Sure, you can convert from VB to PowerShell, but PowerShell does so much more...Agreed. I find Powershell to be surprisingly set-oriented for such a procedural/operational language. In many ways it's the most SQL-like language Microsoft has ever released to production. (besides actual SQL of course...  ) For the most SQL-like language released by Redmond, try SCOPE.
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Yesterday @ 3:57 AM
Points: 288,
Visits: 1,903
|
|
Not having worked with it, I did read some articles last year and was totally horrified by the language specifics and couldn't phantom somone getting language basics so wrong! A language needs to be precise and absolutely clear in its meaning, yes even scripting languages, but powershell code can be interpreted in many ways, most of them seem reasonable and useful in some situations, but only one is actually what it will do. That in itself constitutes a major fail I will argue here (I feel the same about perl for example)
I would absolutely HATE to be forced to use such languages, but for some reason some people adore cryptic and mystic languages and confuse them for powerful. I always seen this as soem sort of cult factor!
The mystic part will disapear if you know all the exact details and pay extreme attention to every letter, but at that point a scripting lanuage in my view already has failed!
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Yesterday @ 7:32 AM
Points: 479,
Visits: 1,263
|
|
| My main wish is that instead of creating YAPL (Yet Another Programming Language), Redmond could have leveraged a non-cryptic scripting language like Python. I enjoy learning, but the number of different language I need to accomplish my normal daily tasks is ridiculous!
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 3:14 PM
Points: 32,906,
Visits: 26,794
|
|
peter-757102 (6/26/2012) Not having worked with it, I did read some articles last year and was totally horrified by the language specifics and couldn't phantom somone getting language basics so wrong! A language needs to be precise and absolutely clear in its meaning, yes even scripting languages, but powershell code can be interpreted in many ways, most of them seem reasonable and useful in some situations, but only one is actually what it will do. That in itself constitutes a major fail I will argue here (I feel the same about perl for example)
I would absolutely HATE to be forced to use such languages, but for some reason some people adore cryptic and mystic languages and confuse them for powerful. I always seen this as soem sort of cult factor!
The mystic part will disapear if you know all the exact details and pay extreme attention to every letter, but at that point a scripting lanuage in my view already has failed!
+1. I couldn't have said it better myself.
--Jeff Moden "RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".
First step towards the paradigm shift of writing Set Based code: Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 1:00 PM
Points: 3,459,
Visits: 2,535
|
|
chrisn-585491 (6/26/2012) My main wish is that instead of creating YAPL (Yet Another Programming Language), Redmond could have leveraged a non-cryptic scripting language like Python. I enjoy learning, but the number of different language I need to accomplish my normal daily tasks is ridiculous! Redmond supports Python in Visual Studio 2012. It is up to developers whether it will get traction.
Edit: spelling 'developers'.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, November 16, 2012 9:00 AM
Points: 3,
Visits: 42
|
|
I have already written some proof of concept application that can be extended using PowerShell scripting, and also using IronPython at the same time. Embedding PowerShell requires no more than dozen additional lines in your app, same for IronPython.
Of course if you want to share some meaningful application state/features then you need to write proper classes and surrounding logic, but I found it to be very intuitive and easy (and I don't make living with everyday programming).
Just remember that classes, properties and methods you want to be available in scripts must be public. I've lost couple of hours until I found this.
|
|
|
|