Year: 2010

We don’t need no stinking DBAs! (T-SQL Tuesday #12)

Sal Young | November 2nd, 2010


During a smoke break, Mike and Pat (two suits for a global consulting firm) were having one of those vainglorious conversations about who spends more on what, who has the larger whatever and who has the latest gadget. Their conversation was interrupted as the CTO and smoking pal, Jeff showed up and joined the two […]

Read More

How to Review SQL Logs with PowerShell

Sal Young | October 7th, 2010


PROBLEM: You need an easy way to review the MS SQL Server logs of all the servers you manage. SOLUTION: Use the Get-SqlErrorLog function from the SQL Server PowerShell Extensions (SQLPSX). I will show you some of the things you can achieve with the use of the Get-SqlErrorLog function and a bit of creativity.  We […]

Read More

How to Script All Stored Procedures From a Database with PowerShell

Sal Young | September 10th, 2010


PROBLEM: You need to script all stored procedures from a database.  Each stored procedure needs to be on its own file so you can add them to a source control repository. SOLUTION: The solution here is a variation of what we did for “How to Script All Tables From a Database with PowerShell”.  The only difference […]

Read More

How to Script All Tables From a Database with PowerShell

Sal Young | August 22nd, 2010


PROBLEM: You need to script all the tables from a database.  Each table needs to be on its own file so they can be added to a source control repository. SOLUTION: The use of SQL Server PowerShell Extensions (SQLPSX) facilitates the solution I’m about to show. The first example is a straight to the point, […]

Read More

How to Change File Extension for all Files in a Folder

Sal Young | August 21st, 2010


PROBLEM: You have a directory with many files and would like to change the extension on many of them without having to do one by one. SOLUTION: You can solve this problem with PowerShell and in less than 3 lines of code. CLEAR CD [PATH TO FILE LOCATION] Get-ChildItem *.[FILE EXTENSION]|Rename-Item –NewName {$_.Name –replace “[FROM […]

Read More

Review SQL Server 2008 Administration in Action

Sal Young | August 19th, 2010


I got a copy of this book back in September of 2009 because I wanted to know more about the hardware configuration of production database servers.  Specifically, I wanted to know about best practices and recommendations in the areas of storage, memory and CPU.  While at the store, I read chapter 2 “Storage and System […]

Read More

Review Quest Software and Virtual Training for SQL

Sal Young | July 25th, 2010


SESSION I – BLITZ! 60 Minute SQL Server Takeovers This past Friday I received an email from a co-worker about the virtual event hosted by Brent Ozar, Buck Woody, Kevin Kline and Ari Weil. I have to admit I deleted the message because I get tons of emails during the day and did not have […]

Read More

Review SQL Antipatterns

Sal Young | July 18th, 2010


Bill Karwin style and choice of arranging the material within the chapters made it an easy read. It includes good and accurate examples the reader can test in almost any database system. Overall, the book will save the inexperience from many failures and embarrassment. I purchased this book hoping to find something new. Unfortunately, I […]

Read More

Review SQL Server 2008 Administration with Windows Powershell

Sal Young | February 21st, 2010


I recommend this book to all database administrators who still have not jumped in and executed their first PowerShell command.  I know of several DBAs who for one excuse reason or another, keep postponing their exposure to the next generation command line shell.  This volume makes a good first PowerShell book for DBAs.  It covers […]

Read More