SQL Management Objects (SMO) Error: Could not load type 'Microsoft.Data.SqlClient.SqlAuthenticationMethod' from assembly 'Microsoft.Data.SqlClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5'.

If you're trying to use SQL Managent Objects (SMO) with the latest SQL Client (v7.0.0) then you might notice the following error:

Could not load type 'Microsoft.Data.SqlClient.SqlAuthenticationMethod' from assembly 'Microsoft.Data.SqlClient, Version=7.0.0.0, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5'.


This is a coding issue that's being tracked here - a new package should be available (currently 9th April 2026).

https://github.com/dotnet/SqlClient/issues/4064



While you're here why not check out our SQL Server documentation and audit tool?

https://www.centrel-solutions.com/xia-configuration/server/supported-platforms/sql-server-documentation-tool

Image showing XIA Configuration's relationships visualizer.

Comments

Popular posts from this blog

SOLVED: Exchange Online Management PowerShell Connect-ExchangeOnline bug "A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles"

System error 86 has occurred. The specified network password is not correct.

The security identifier of the "NT SERVICE\WdiServiceHost" account is "S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420"