Microsoft.SqlServer.Management.Smo namespace - what do I need to install it to fix it?

I am collecting a support call for an outdated piece of software. It has the following imports:

using Microsoft.SqlServer.Management.Smo;
using Microsoft.SqlServer.Management.Common;

The links in the project indicate:

Microsoft.SqlServer.ConnectionInfo
Microsoft.SqlServer.Smo

.. which are currently not allowed and cause compilation to fail.

What do I need to download and install to compile this project? I currently have SQL Server 2008 installed. I found links such as http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=50b97994-8453-4998-8226-fa42ec403d17 , but I not sure what to install.

A link to what is required will be highly appreciated! Thank.

+3
source share
4 answers

, XMO:

API SQL Server 2005, (AMO), (RMO) SQL Server (SMO). SQL Server 2005.

. Microsoft SQL Server 2005 Microsoft Core XML Services (MSXML) 6.0 Microsoft SQL Server, .

(): , ,

X86 Package (SQLServer2005_XMO.msi) - 9529 X64 (SQLServer2005_XMO_x64.msi) - 14963 IA64 (SQLServer2005_XMO_ia64.msi) - 18372

SQL Server 2008, . C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies.

, 2008 2005 , , , , 2008 , 2005 ( SMO 2008 2005 )

+5

Microsoft.SqlServer.Smo, Microsoft.SqlServer.ConnectionInfo Microsoft.SqlServer.Management.Sdk.Sfc, sdk Sql: C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies

+5

, :

Microsoft SQL Server 2005

API SQL Server 2005, (AMO), (RMO) SQL Server (SMO). SQL Server 2005.

X86 package (SQLServer2005_XMO.msi) - 9529 KB

X64 package (SQLServer2005_XMO_x64.msi) - 14963KB

IA64 Package (SQLServer2005_XMO_ia64.msi) - 18372KB

+3
source

In my visualstudio2015

Add Reference >> Assemblies >> Extension >>
microsoft.sqlserver.ConnectionInfo
microsoft.sqlserver.management.SMO 

and it works great.

0
source

Source: https://habr.com/ru/post/1786635/


All Articles