SQL Server using Powershell – Error: the ‘Invoke-SqlCmd’ command was found in the module ‘SQLPS’, but the module could not be loaded
I’m encountering an error when trying to create a database and also to execute other queries in SQL Server using PowerShell’s Invoke-SqlCmd
command.