Just a quick post as may help any of you searching for this.
Scenario Client wants to analyze most recent deadlocks that happened on a specific instance. They asked us to send the xdl files.
How do we get the deadlocks? Depending on the version of SQL Server that you are running, there are different ways to do it. In this post I will share how you can do it from all files that belongs to the system_health extended event session.
Few days ago I was surfing on Twitter when dbatools asked about how it’s PowerShell module changed the way people work .
Open and check the answers given by the community as there is really good stuff there!
My turn I have shared one of my recipes related to database refreshes. You know, when the client says, “please restore this backup or the most recent backup on our instance.”. But what if the databases belong to an availability group?
Disclaimer: The title is my assumption because I saw it in the past happening this way.
This blog post aims to make you remember something: something that is obvious to you, might not be obvious to others.
Scenario A client has a process which consists of a stored procedure that wraps a bunch of other stored procedures. The process runs for about 10 hours.
Taking a look…what is running right now?
There are some actions that we know that will have to be repeated from time to time, but the surprise comes when it’s time to do so and the process that used to work does not work anymore.
This is a short post to document a slight change that I had to do to achieve the same final result as the first time.
Long story short A client needed to run a setup to install an application.
Starting on dbatools version 1.0.31 we introduced better coverage for commands that make use of PowerShell Remoting.
Which commands? Commands like Get-DbaComputerCertificate, Get-DbaPrivilege, Get-DbaClientAlias, just to mention a few of them, make use of the internal function Invoke-Command2 which uses New-PSSession when we run it against a remote computer.
“Why have you changed it?” Let me give you a little bit of background… At my company, I found that some dbatools commands were not working.