Me, myself and Powershell

  • Comments posted to this topic are about the item Me, myself and Powershell

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • Good Job Johan... 🙂 Nice examples.

    -Roy

  • I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D

  • Roy Ernest (12/6/2011)


    Good Job Johan... 🙂 Nice examples.

    Thank you, Roy. I hope it gets people started.

    skron (12/6/2011)


    I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D

    Thank you skron for sharing your experience.

    That's the kind of info we - sql devoted people - need if we want to get people started and experiencing how Powershell can help out fairly easy.

    Please share some use cases and code samples if you can.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • Thank you Johan, really good article.

    M&M

  • skron (12/6/2011)


    I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D

    It's quite handy as a developer as well powershell is great for scripting out objects in a much more flexible and repeatable manner than SSMS allows.

  • mohammed moinudheen (12/7/2011)


    Thank you Johan, really good article.

    Thank you, Mohammed.

    Samuel Vella (12/7/2011)


    skron (12/6/2011)


    I have found Powershell to be invaluable to me as a DBA. I have been able to replace a large chunk of monitoring tools with it. Keep giving us the good examples.:-D

    It's quite handy as a developer as well powershell is great for scripting out objects in a much more flexible and repeatable manner than SSMS allows.

    Thank you, Samuel.

    Please share some use cases and code samples if you can.

    DBA/sysadmins really need to get started exploring Powershell!

    Number of reads after 24hours: 4,955 reads. I'm quite happy with that :w00t:

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • ALZDBA (12/7/2011)


    Thank you, Samuel.

    Please share some use cases and code samples if you can.

    DBA/sysadmins really need to get started exploring Powershell!

    Use cases:

    Dev environment with 100's of tables, stored procedures, views functions etc... some of which need to be promoted to the production environment.

    A combination of excel and powershell means you can maintain a list of items and quickly pull the creation scripts out of the development environment.

    The spreadsheet and associated macros are probably worth an article in their own right

  • Samuel Vella (12/7/2011)


    ALZDBA (12/7/2011)


    Thank you, Samuel.

    Please share some use cases and code samples if you can.

    DBA/sysadmins really need to get started exploring Powershell!

    Use cases:

    Dev environment with 100's of tables, stored procedures, views functions etc... some of which need to be promoted to the production environment.

    That would be an interesting topic.

    A combination of excel and powershell means you can maintain a list of items and quickly pull the creation scripts out of the development environment.

    The spreadsheet and associated macros are probably worth an article in their own right

    Very true.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • Automating daily tasks is not only easy with Posh but, fun as well 🙂

    Chad Miller's MSCS code on poshcode site is a wonderful starting point if you want to get a hang of WMI. I would like to thank Chad for posting this particular piece of code http://poshcode.org/2886.

    I tried it as challenge to get all the data in one shot (Cluster, Groups, Resources and resource types), it was an awesome feeling when I was able to do it. After that, you can build a hash with the data; add some methods and vallah, you don't have to look at cluster admin console again 😉

    PowerShell is aptly named.

    -Hope is a heuristic search :smooooth: ~Hemanth
  • hemanth.damecharla (12/7/2011)


    Automating daily tasks is not only easy with Posh but, fun as well 🙂

    Chad Miller's MSCS code on poshcode site is a wonderful starting point if you want to get a hang of WMI. I would like to thank Chad for posting this particular piece of code http://poshcode.org/2886.

    I tried it as challenge to get all the data in one shot (Cluster, Groups, Resources and resource types), it was an awesome feeling when I was able to do it. After that, you can build a hash with the data; add some methods and vallah, you don't have to look at cluster admin console again 😉

    PowerShell is aptly named.

    I can't stress the FUN part enough.

    There is indeed a whole bunch of practical info and great samples out there.

    Chad is one of the people posting on a regular basis and knowing his stuff.

    Thank you for the feedback.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • Oftentimes folks applaud PowerShell for things, and I see that those things can be done and automated just as easily in t-sql. I am looking for a list of PowerShell stuff that CANNOT be done in SQL, and that a DBA can find handy. One example I can think of is accessing non-SQL performance counters. Anything else useful for a DBA?

  • e.g.

    - setting startup parameters if your service account doesn't have local sysadmin at windows level.

    - granting auth at windows level ( e.g. to push backup files to a safe zone )

    - are you using SMO to configure sqlserver things ?

    you name it, you got it.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • ALZDBA (12/29/2011)


    - setting startup parameters if your service account doesn't have local sysadmin at windows level.

    - Cool.

    ALZDBA (12/29/2011)


    - granting auth at windows level ( e.g. to push backup files to a safe zone )

    - xp_cmdshell

    ALZDBA (12/29/2011)


    - are you using SMO to configure sqlserver things ?

    - No, no need. I use sqlserver (SSMS/T-SQL) to configure sqlserver things

  • pkrudysz (12/29/2011)


    ALZDBA (12/29/2011)


    - setting startup parameters if your service account doesn't have local sysadmin at windows level.

    - Cool.

    ALZDBA (12/29/2011)


    - granting auth at windows level ( e.g. to push backup files to a safe zone )

    - xp_cmdshell

    ALZDBA (12/29/2011)


    - are you using SMO to configure sqlserver things ?

    - No, no need. I use sqlserver (SSMS/T-SQL) to configure sqlserver things

    Of course you can do it all manually, time and again.

    You are correct, xp_cmdshell can take you a long way.

    Powershell only provides the means to hook up to more than just what's available in DOS (xp_cmdshell) and vbscript.

    That means for many systems people, that don't program e.g. c#.net, .. they have to learn only one language syntax, hook up to their target namespace and use that software's proper methodes to configure whatever needed.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic. Login to reply