Andreas Jordan

Results 390 comments of Andreas Jordan

As we currently depend on SqlServer.XEvents, we have a problem: ![image](https://github.com/dataplat/dbatools/assets/66946165/77f4ae7a-b51b-47ad-a885-fa4581e23122) https://www.powershellgallery.com/packages/SqlServer.XEvent

Moved a lot of code around and now it is working again (on my maschine). But it needs SqlServer module installed. Feedback welcome.

Thanks for the feedback, updates the pull request.

First I thought about Test-DbaPrivilege with a parameter Privilege, but as we only have a solid best practice for InstantFileInitialization I now think Test-DbaInstantFileInitialization will be best. The hint to...

@tboggiano What do you think about the proposed command?

This is the code that failes: ``` Invoke-Command2 -Credential $DestinationCredential -ScriptBlock { Write-Message -Message "Copy destination folder $DatabaseCopyDestinationFolder not found. Trying to create it.. ." -Level Verbose $null = New-Item...

To get the correct data, ask the primary, not the secondary. Inside of the command, we do nothing with that data, we just return what the SMO tells us. I...

To dig deeper, you could save the result for one database to a variable and have a look at the properties. "SizeMB" is just an alias for "Size" which is...

What are you expecting? The config is written to the registry, not a file. The target is: HKEY_CURRENT_USER\Software\Microsoft\WindowsPowerShell\dbatools\Config\Default You can use `Set-DbatoolsConfig -FullName -Value -PassThru | Register-DbatoolsConfig -Scope SystemDefault` to...

The data masking commands are a bit stale and I don't have a lab to test them. If you could have a look at the source code and find the...