The cmdlets Are Coming! The cmdlets Are Coming!

  • Comments posted to this topic are about the item The cmdlets Are Coming! The cmdlets Are Coming!

    @SQLvariantI have a PowerShell script[/url] for you.

  • Thanks for sharing. Cmdlets for encryption, sql agent and error log consumption are most welcome.

    It would be nice if msdb.dbo.restorehistory was also exposed through a cmdlet to get the last restore known restore date of a database. Also hope to someday replace my rather ugly PS Functions for replication administration, using a combination of RMO and Invoke-Sqlcmd, w/ some slick cmdlets.

    Not sure if this one makes sense but would like to see some sort of Set-DatabaseOption function that serves as an alias for ALTER DATABASE .. SET operations. So something like Set-DatabaseOption -Database "happyDB" -Broker "Enabled" -Trustworthy "On" -Read_Commited_Snapshot "On" -PendingTransactions "Wait" (or Fail or -Force rollback)

    🙂

  • I chocked and was shocked seeing this:

    import-module sqlserver

    Get-SqlPort -sqlserver myserver\myinstance

    result

    Get-SqlPort : SQLDMO is not installed.

    At line:1 char:1

    SQLDMO ????????

    Oh, wait, maybe that's the one coming from the "old" SQLPSx installation

    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

  • Johan,

    Yes, that's bound to be from the old SQLPSX module. An unfortunate name collision but great progress for SQL PowerShell as a whole.

    @SQLvariantI have a PowerShell script[/url] for you.

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

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