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


Scripting


Scripting

Author
Message
John Hanrahan
John Hanrahan
SSC Eights!
SSC Eights! (829 reputation)SSC Eights! (829 reputation)SSC Eights! (829 reputation)SSC Eights! (829 reputation)SSC Eights! (829 reputation)SSC Eights! (829 reputation)SSC Eights! (829 reputation)SSC Eights! (829 reputation)

Group: General Forum Members
Points: 829 Visits: 1464
I think PowerShell is very cool but I've only ever had a use for it once. I use it to clean up my backup directories. There is just too much to learn and now that M$ has lost control of all the markets it's hard to know where to spend your time. Scripting seems like a lower priority to me.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)

Group: Administrators
Points: 65793 Visits: 19118
Craig-315134 (9/26/2013)
Steve Jones wrote:

... I am starting to think that Powershell might be the best investment in my future skills.

Steve, do you think Powershell would also be a good skill for application developers to learn, please?

Thanks.


I do, only because as you look to make changes to your environment or deploy changes, scripting ensures consistency and can be packaged up with your project as something else to run in an MSBuild-type script.

Note that I think PoSh is trivial to learn for developers. It's essentially procedural programming with object handles. Piece of cake if you are used to VS development.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
GoofyGuy
GoofyGuy
SSChasing Mays
SSChasing Mays (659 reputation)SSChasing Mays (659 reputation)SSChasing Mays (659 reputation)SSChasing Mays (659 reputation)SSChasing Mays (659 reputation)SSChasing Mays (659 reputation)SSChasing Mays (659 reputation)SSChasing Mays (659 reputation)

Group: General Forum Members
Points: 659 Visits: 971
Thanks, Steve.

I don't use MS application development tools or languages any more (Mr Hanrahan's previous post is an indication of the times, including those in our shop), so I'm not sure if PS would prove terribly useful that regard. But SQL Server will be around for the foreseeable future, so it still would have some utility for us.

Best,

Craig
andrew gothard
andrew gothard
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1109 Visits: 5791
Dave Schutz (9/26/2013)
I've just started working with PowerShell and I save my scripts in Notepad so I can comment them. Otherwise I'll forget what I created the script for. Scripting is the new future of IT.


What about some kind of database ... <runs>. TFS (or similar - other source control systems are available), then as well as searchable documentation you can add in any tests etc. you want to have with them

I'm a DBA.
I'm not paid to solve problems. I'm paid to prevent them.
Tom Thomson
Tom Thomson
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14810 Visits: 12238
Sure, we all need to be able to write scripts; that's been true quite independent of Sql Server or indeed of the existence of relational databases for a very long time. what changes is which scripting languages one needs to know.
Back in the SQL Server 2000 days, it was easy to get by with T-SQL scripts, CMDEXEC scripts, and Active-X scripts (which in my case meant JScript scripts; I never bothered to find out if SQL Agent would allow VBScript, because I dislike the language) and SQL Server Agent supported all three. I haven't come across anything much I couldn't handle with one of those (particularly as it's easy to make calls between JScript and CMDEXEC Script or from either to T-SQL) although I occassionally used other things without bothering to learn them properly because the uses were pretty well one-offs. As for Powershell, which is one of the scripting languages that I've I've used but never bothered to learn properly because I didn't expect to use it enough to make the investment of time to learn it worth while, I suppose it may become necessary sometime because MS have deprecated the Active-X capability of SQL Agent, but given that the Active-X capabiliy is going to continue to be available in at least the next two releases there are probably quite a few of us who may not have to worry about it.

My wory is that dropping the Active-X subsystem and using Powershell instead may not be a step forwards. Is it just churn for churn's sake? Or does it really provide new capability or make scripting easier?

Tom

Miles Neale
Miles Neale
Hall of Fame
Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)Hall of Fame (3.1K reputation)

Group: General Forum Members
Points: 3100 Visits: 1694
Sorry to come to the ball late but I also agree but in a slightly different approach. As a developer I write code. .Net C# code and I use SSIS, SSRS, SSAS and whatever else I can find that will make it happen. But these are code components. As a rule I choose to use these first and foremost. They are far and away my first choice. But some of the time I find that my first choice solution is not elegant nor easily developed. Kind of like the case where you try to pound a nail with a screwdriver. Great tool, easy task but not made for this at all.

In screwdriver cases I need to use my second choice. It just works better that way.

For those who are scriptors who know scripts like some developers know their language of choice, break out the scripting tools and let it rip until you need to execute a second choice. It works better that was as well.

Until people learn this we, will see intelligent folks yelling and screaming as they continue to pound those nails with their screwdrivers.

:-)

Not all gray hairs are Dinosaurs!
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