What do you use for creating admin utilities

  • I moving in to more SQL Server support coming from UNIX based Sybase. When coding administartive utility code ouside of provided interfaces, I generally use a cobination of shell scripts,isql and and some Perl. What tends to be the most popular methods for supporting SQL Server. Scripting/Programming/Other tools?

  • The vast majority is done through the provided interfaces and T-SQL. But if you're really interesting in automating administration of the servers and instances, PowerShell is your bestest friend in the world.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • I concur 100% with grant. You can do a ton with TSQL, use Powershell for stuff you cant do with TSQL.

    Redgate tools are awesome too: The comparison utilities (schema and data compare) have helped a ton lately.

    "I cant stress enough the importance of switching from a sequential files mindset to set-based thinking. After you make the switch, you can spend your time tuning and optimizing your queries instead of maintaining lengthy, poor-performing code."

    -- Itzik Ben-Gan 2001

  • To wit, I use xp_CmdShell to call Powershell. 😉

    --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.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 4 posts - 1 through 3 (of 3 total)

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