‘Invoke-Sqlcmd’ is not recognized as the name of a cmdlet

Open up PowerShell as an Administrator and install the sqlserver module by Install-Module sqlserver

After the module has installed, the module commands including the Invoke-sqlcmd should be readily available.

You can check the same using Get-Command -Module sqlserver.

If this module is not readily available, you can Import-Module sqlserver after installing it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)