Powershell, SMO and Database Files
In response to some questions about renaming a physical file for a database, I have 2 versions of Powershell scripts that do this for you, including taking the database offline and then online to make...
View ArticleSMO and Index Fragmentation
When working with SMO and Indexes there are times that you want to get the fragmentation of this particular index. In SMO there is a method on the Index called EnumFragmentation. When you call this...
View ArticleGet SQL Server Service Accounts with WMI
Today I was tasked with retrieving the SQL Server Service accounts to validate them in Active Directory. I wanted a simple way to get them and show the account names for each SQL Server service. I...
View ArticleT-SQL Tuesday #39: More Efficient SMO with Server.SetDefaultInitFields
This T-SQL Tuesday is about PowerShell and how I use it with SQL Server. There are many more posts to come about PowerShell and SQL Server but I thought I would cut my teeth on this T-SQL Tuesday...
View ArticleSpeaking at SQL Saturday 220 Atlanta #SQLSATATL
Posted over on sqlblog.com about my speaking at the SQL Saturday. Hope to see you there. The post Speaking at SQL Saturday 220 Atlanta #SQLSATATL appeared first on Ben Miller (@DBAduck).
View ArticlePowerShell month in May with DBAduck
I am excited for this month. SQLSkills Training Event 1 for this month revolving around PowerShell is May 8-10 at SQLskills.com training in Chicago. I am teaching the first class of the Immersion event...
View ArticleWhy Become a PowerShell DBA
If you find this article valuable and you decide that you want to get your learn on with PowerShell and SQL Server, there is a SQLSkills class that I am teaching this year, please join me to get a...
View Article