Skip to main content

Posts

Showing posts from September, 2011

SQL Bits Training Day

By David PostlethwaiteJust spent a day with Allen White, a SQL MVP from Ohio, USA learning about automating and managing SQL Server using PowerShellPowerShell is ubiquitous in Windows now and can be used to view and manage any part of the Windows systems, it uses the .NET framework which, for me who has written plenty of c#,  made it much easier to understand. One of the things I liked about PowerShell was the way that objects like the registry and SQL Server can be browsed just like a disk drive.The real winner, not just for PowerShell but for .NET as well, is SQL Server Management Objects or SMO, a whole class of functions that can be used to interrogate SQL Server. I hadn’t come across this before but I could see so many ways that I could use it for retrieving information and managing SQL Server. An example was “how would you find all varchar fields in all databases in several instances and change them to varchar(max). A nightmare with t-sql but with SMO quite easy.We also saw exam…

David’s SQLBITS Day 1–The Travel Day

Just had a pleasurable 5 hours watching the Autumn countryside go by on a glorious sunny day (in fact its warmer at the end of September than it was for most of July and August).Where am I heading you ask? Liverpool the home of the Beatles, the Mersey Ferry and Nerris Hughes. I’m here for SQLBits, a 3 day biannual conference held in the UK for everything SQL Server.This is my 2nd time to SQLBits, the last being in March at the Grand Hotel in Brighton.Thursday is a training day where one studies a particular topic in depth. Friday  has a choice of 30 different sessions. Saturday has another 30 sessions but this day is free to attendees.On Thursday I’m looking forward to getting to grips with PowerShell. As well as being a SQL DBA I also write a lot of ASP.NET. I’ve written quite a comprehensive web site to audit and troubleshoot my SQL Server estate but I’ve wanted to learn PowerShell to allow me to run quick checks and automation commands just like I used to do with DOS in days gone b…