You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Import-DbaCsv] Failure | Unable to load DLL "Microsoft.Data.SqlClient.SNI.x64.dll": The specified module could not be found. (Exception from HRESULT: 0x8007007E)
#9630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Microsoft SQL Server 2017 (RTM-CU31-OD) (KB5050533) - 14.0.3490.10 (X64) Feb 19 2025 12:19:28 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2019 Datacenter 10.0 (Build 17763: ) (Hypervisor)
.NET Framework Version
.NET Framework 4.8.4775.0
The text was updated successfully, but these errors were encountered:
I've since installed DBATools on 2 other hosts and the above commands work fine. The issue isn't an installation issue, but I have no idea how I would go about troubleshooting it on the original host. Suggestions would be most welcome, as I need dbatools to work on the original host.
Verified issue does not already exist?
I have searched and found no existing issue
What error did you receive?
I have a fresh install of dbatools on a Windows Server 2019 environment with SQL Server 2017 and SSMS 19.3.
Steps to Reproduce
Import-DbaCsv -Path "F:\Path\to\a*.csv.gz" -SqlInstance HOSTNAME -Database MyDB -Table TargetTable -Delimiter "|" -WhatIf
Please confirm that you are running the most recent version of dbatools
2.1.30
I've uninstalled dbatools via uninstall-module and reinstalled, error persists
Other details or mentions
This is the first command I've run from dbatools in this environment.
I also ran "Get-DbaDatabase -SqlInstance HOSTNAME" and got the same error about unable to load this DLL.
Initially was running in PowerShell ISE, but also ran under Windows PowerShell.
What PowerShell host was used when producing this error
Windows PowerShell ISE (powershell_ise.exe)
PowerShell Host Version
Name Value
PSVersion 5.1.17763.6893
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.6893
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
SQL Server Edition and Build number
Microsoft SQL Server 2017 (RTM-CU31-OD) (KB5050533) - 14.0.3490.10 (X64) Feb 19 2025 12:19:28 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2019 Datacenter 10.0 (Build 17763: ) (Hypervisor)
.NET Framework Version
.NET Framework 4.8.4775.0
The text was updated successfully, but these errors were encountered: