Category Archives: Sql Server


Get-Hotfix command – check installed hotfixes

Get-Hotfix command - check installed hotfixes

Very short and simple post however, oh so important especially when a software vendor requires using specific version / hotfix.

Read More →

Executing SQL Statements using PowerShell

Executing SQL Statements using PowerShell

The SQL Server SMO client API can be used query and alter settings and objects within your SQL Server instances, however in case you want to query your user database, you will run into some limitations. The client API simply isn’t aware of your data objects and therefore not exposing a typed scheme. Fortunately, it’s pretty easy to accomplish when using the SQL Server PowerShell Module (SQLPS)

Read More →

JIRA SQL Server Network error IOException

JIRA SQL Server

Was running into the following error while installing JIRA: “Network error IOException: Connection refused”. It seems that the SQL Server Express installer doesn’t enable the TCP/IP protocol by default.

Read More →

SQL Remote Access Azure VM’s

SQL Remote Access Azure VM’s

Opening up SQL Server instances hosted on Azure VM’s is just one of those manual, repetitive and error-prone tasks. Given that I’m spinning up new VM’s in a daily basis, I’ve decided to automate the process using PowerShell and SQL Server Management Objects (SMO). This makes setting up SQL Remote Access on Azure a simple task.

Read More →

Scripting SQL Server installations

Scripting SQL Server installations

I was addressing performance issues onsite just a couple of weeks ago and while waiting for the right authorizations, access tokens and whatever you need nowadays to just run some scripts…, one of the developers approached me and asked for some insights on how to Scripting SQL Server installations.

Read More →

SQL Emergency maintenance PowerShell

SQL Emergency maintenance PowerShell

Moving SQL server data files just isn’t something I do very often. And I therefore tent to forget which actions are involved. To solve this, I’ve prepared a Powershell script to automate the steps

Read More →

Management Studio Custom Shortcuts

Management Studio Custom Shortcuts

A DBA recently attended me on the “Query Shortcuts” option within Management Studio. Now, I have to admit that I’m lazy from time to time and a horrible typist on Monday mornings and therefore using the option a lot, especially while debugging.

Read More →