Open dermeister0 opened 6 years ago
How to find existing SMO installations:
Get-ChildItem -Recurse 'C:\Program Files (x86)\Microsoft SQL Server' 'Microsoft.SqlServer.Smo.dll'
Directory: C:\Program Files (x86)\Microsoft SQL Server\110\SDK\Assemblies
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/19/2012 3:49 PM 3644928 Microsoft.SqlServer.Smo.dll
Directory: C:\Program Files (x86)\Microsoft SQL Server\120\SDK\Assemblies
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2/20/2014 9:44 PM 3720896 Microsoft.SqlServer.Smo.dll
Directory: C:\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 4/17/2016 9:57 PM 4037832 Microsoft.SqlServer.Smo.dll
Solutions:
Install SQL Server Management Object 2008 R2.
https://www.microsoft.com/en-us/download/details.aspx?id=16978
If you have SMO with newer version, edit
assemblyBinding
section inDBVer.exe.config
.