Today my first ever MSSQLTip was published. Before you ask: Yes, it talked about PowerShell.
It came about because some of the SQL MVPs were trying to figure out the best way to download a VM that had been split up into 36 different equal-sized files. I’m sure there’s a better way than this but at the same time it took me about 4 minutes to write. Write is the wrong term, more like copy/paste/change a few things.
Give it a whirl and let me know what you think!
I did another webcast for the Secrets of SQL Server webcast series today. In the today’s webcast we built on some things I had demoed in a prior webcast and showed how PowerShell in conjunction with SQLPSX can really help you solve some common problems DBAs face.
I showed how you could pull size and free space information from all of your data files, then used the same technique to pull size information from all of your tables across every database on an instance. Later we created a database and some tables, and then showed how to do some basic login comparisons, all with SQLPSX.
In addition, we stored the results of the frees pace and table size information in a database using the Out-DataTable and Write-DataTable functions. Finally we wrapped up with a quick demo on how the new SQL Server cmdlets inside of the SQLPS Module in Denali combined with some new functionality in PowerShell v3 CTP1 can really make backing up a database with PowerShell a lot easier.
Here’s what you’ll need to recreate today’s demos;
I hope I see you next week at the PASS Summit or next month during another webcast, this time on customizing your own functions to work with the SMO.