join the MSSQLTips community

MSSQLTips.com - your daily source for SQL Server tips

Google
 
Web mssqltips.com

 
And here starts the Powershell Series... - Charley Hanania

MSSQLTips

MSSQLTips.com - your daily source for SQL Server tips
Welcome to MSSQLTips Sign in | Join | Help
in Search

Charley Hanania

And here starts the Powershell Series...

Most DBA's have a hard time coming to terms with programming languages, and although I've used close to 10 in my history I've always defaulted back to my tried and trusted T-SQL to cater for my data-focussed needs...

A while back now though, the hype increased on LINQ for example and now for Powershell, and although I never saw LINQ take off Powershell is another matter in deed...

Powershell leverages many components to bring a powerful scripting interface that surpasses the old WMI and VBScripting, making use of the .NET framework and other rich programming interfaces and libraries to leap over the boundaries that each of the general MS applications and components encounter. For example, theoretically, I should be able to run a script that checks for space on my server, determine what is installed on it, what "space-hogs" exist for the installed applications and decide [intelligently] what should be removed and how to remove them cleanly... If this is a server that hosts SQL Server, Exchange etc, then we could build within the scripting interface complex enough logic to clean these up without impacting their use nor their availability.

With that said, I've tried to get into it as I have previously with other scripting languages and found myself a mere data focussed guy, lost... even after attending great sessions and reading several blogs and articles...

Powershell MVP Marc van Orsouw has moved to Switzerland from the Netherlands, and apart from attending and supporting the PASS Chapter and Usergroup meetings has gone one step further to teaching this old dog a new trick. He took the time today to walk me through some of the basics, and I'll be sharing some of his insights and tips with you in a series of blog posts focussed on Powershell for SQL Server. As I learn and come to terms with it I hope that it will help other "victims" get over the initial hurdles of breaking in a new-ish technology to truly enhance your DBA time and experience. I've got a lot of ideas on what we can do with it, and am looking forward to putting these out there for one and all to leverage.

Stay tuned...

 

Comments

No Comments

About Charley Hanania

Based in Zurich, Charley Hanania is Principle Consultant at QS2 – Quality Software Solutions. Prior to this worked for UBS as the Production Product Owner, responsible for SQL Server Production Operations within the Investment Bank. He has been focussed on SQL Server since version 4.2 on OS/2 and with over 15 years of experience in IT he has supported and consulted to numerous organisations in database training, development, architecture and administration related areas throughout Europe and Australasia. Communities are Charley's passion, and he became active in database communities in the mid 90's, participating in SQL Server and heterogeneous database user groups in Australia. He continues to lead an active role through various community events, the SwissITPro User Group and the Swiss PASS Chapter. www.sqlpass.ch/

View Charley Hanania's profile on LinkedIn