Unable to load adalsql.dll error when calling `Invoke-sqlcmd`

前端 未结 5 884
北恋
北恋 2021-01-31 17:35

I have VS2015 with SSDT installed, along with SSMS and the SqlServer PowerShell module (which includes the invoke-sqlcmd comand), and yet If I try to execute a qu

5条回答
  •  广开言路
    2021-01-31 17:52

    In my case culprit was VS 2019. It has newer version of ADALSQL package. For me it was at path "C:\ProgramData\Microsoft\VisualStudio\Packages\sql_adalsql,version=16.0.61903.25110,chip=x64,language=en-US", which I uninstalled and installed desired version to resolve the issue.

    Hope this helps!

提交回复
热议问题