-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I have a Windows VM running in Parallels on a Mac with an M4 processor.
After installing the module into an up-to-date PowerShell Core, I tried to issue a query using Invoke-Sqlcmd.
This produced an error:
Invoke-Sqlcmd: Unable to load DLL 'Microsoft.Data.SqlClient.SNI.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)
After investigating the folder structure, this seems to be fixed by performing the following actions:
$modulePath = Split-Path (Get-Module SqlServer -ListAvailable).Path
$arm64Dir = "$modulePath\coreclr\runtimes\win\lib\net6.0\win-arm64"
mkdir $arm64Dir -Force | Out-Null
Copy-Item `
"$modulePath\Microsoft.Data.SqlClient.SNI.arm64.dll" `
"$arm64Dir\Microsoft.Data.SqlClient.SNI.dll.dll"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels