THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | |
in Search

Browse by Tags

All Tags » powershell » SQL Server 2008   (RSS)
Showing page 2 of 2 (20 total posts)
  • PowerShell Demo Prompt

    When I teach I have to set my fonts really big so that folks in the back can see. I show PowerShell from time to time, and people keep asking me about my latest prompt.  Here’s what my prompt looks like:   { univac\Buck on UNIVAC using AMD64 } --    12/23/2009 7:54:10 ...
    Posted to Buck Woody (Weblog) by BuckWoody on December 24, 2009
  • A Couple of Invoke-SQLCMD Issues

    In working on a PowerShell script to load data into SQL Server, I decided to use the Invoke-SQLCMD cmdlet included in the snapins provided with SQL Server 2008, and found a couple of issues you should know about. First, as a matter of best practices, if a stored procedure returns a scalar value, it should do so in an output parameter. The ...
    Posted to Allen White (Weblog) by AllenMWhite on August 14, 2009
  • PowerShell's "Mini-Shell" Is Not A "Mini" Shell

    I just learned about a Connect item entered on Friday: https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=475337. Here's the description in the item. Please invoke the full powershell not a ''mini-shell''. Powershell is very powerful but the mini-shell you get when invoking Powershell from the Management Studio ...
    Posted to Allen White (Weblog) by AllenMWhite on July 20, 2009
  • PowerShell Whitepaper Published

    My first whitepaper for Microsoft, Understanding and Using PowerShell Support in SQL Server 2008 has been published. It was a great honor to have been selected to write the paper, and I thank Kalen Delaney for giving me the opportunity. I hope you find it useful. Allen
    Posted to Allen White (Weblog) by AllenMWhite on June 13, 2009
  • SMO Changes from SQL 2005 to SQL 2008

    A year ago in anticipation of publishing a book on SMO (which never came to be) I wrote a number of chapters demonstrating how to manage specific sets of objects, and I provided examples in VB.Net, C# and PowerShell. As should be expected, I thoroughly tested all of the code samples to make sure they worked. This year I've been part a couple of ...
    Posted to Allen White (Weblog) by AllenMWhite on February 20, 2009
  • Loading SMO Assemblies into PowerShell

    Microsoft included PowerShell with SQL Server 2008, and the new sqlps.exe program which includes the SQL PowerShell drivers including the PS Drives and new cmdlets for SQL Server. I prefer to work from vanilla PowerShell and load the assemblies I need, so I have code at the start of my script to load the appropriate assemblies. When I started ...
    Posted to Allen White (Weblog) by AllenMWhite on December 7, 2008
  • PASS Demonstration Errors

    Errors occur. (I'm sure that's someone's corollary to Stuff Happens.) Errors occur, and that's why we write error handling code in our applications. My least favorite time for the occurrance of errors is when I'm doing demos, and that's what happened in a presentation I did at PASS last week. I try to test everything before giving the demos, ...
    Posted to Allen White (Weblog) by AllenMWhite on November 24, 2008
  • SQL Server 2008 SMO Library Changes

    While preparing for a presentation at PASS next month I tested my PowerShell script to back up user databases on a server. This script has been running flawlessly against SQL Server 2005 for a couple of years, so I was really surprised when PowerShell returned a screen full of errors and no backups. What slipped my mind was something I'd ...
    Posted to Allen White (Weblog) by AllenMWhite on October 18, 2008
  • SQL Saturday 6 - Cleveland August 9

    Wow, it's been a crazy month! Two weeks of Tech Ed in Orlando, where I spent time helping people with questions on SQL Server in the Database Platform area and presented two sessions on SMO and PowerShell (one with my friend Peter Ward from Australia). Then, my last week as a DBA at Advanstar, followed by my first week as a Trainer for ...
    Posted to Allen White (Weblog) by AllenMWhite on June 27, 2008
  • Start PowerShell in Management Studio

    In the February CTP of SQL Server 2008 a new feature has appeared in SQL Server Management Studio. You now have the ability to right-click on an object in the Object Explorer window and open up a PowerShell window. In this window you can navigate the database structures much like you can a disk file subsystem, or like you can navigate the ...
    Posted to Allen White (Weblog) by AllenMWhite on February 20, 2008
Privacy Statement