Microsoft.SqlServer.Management.Smo 命名空间 - 我需要安装什么来解决它?

发布于 2024-10-12 15:48:08 字数 644 浏览 2 评论 0原文

我正在接听有关旧软件的支持电话。它具有以下导入:

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

项目中的引用指向:

Microsoft.SqlServer.ConnectionInfo
Microsoft.SqlServer.Smo

.. 当前尚未解析并导致编译失败。

我需要下载并安装什么才能编译该项目?我目前已经安装了 SQL Server 2008。我找到了诸如 http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=50b97994-8453-4998-8226-fa42ec403d17 但我不确定要安装什么。

如果能提供所需内容的链接,我们将不胜感激!谢谢。

I'm picking up a support call on a legacy piece of software. It has the following imports:

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

The references in the project point to:

Microsoft.SqlServer.ConnectionInfo
Microsoft.SqlServer.Smo

.. which are not currently being resolved and causing the compile to fail.

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

A link to what is required would be much appreciated! Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

绝不放开 2024-10-19 15:48:08

您需要安装位于 XMO 包中的管理对象:

管理对象集合包包含 SQL Server 2005 管理 API 的几个关键元素,其中包括分析管理对象 (AMO)、复制管理对象 (RMO) 和 SQL Server 管理对象 (SMO)。开发人员和 DBA 可以使用这些组件以编程方式管理 SQL Server 2005。

注意:Microsoft SQL Server 2005 管理对象集合需要 Microsoft Core XML Services (MSXML) 6.0 和 Microsoft SQL Server Native Client(也可在此页面上找到)。

受众:客户、合作伙伴、开发人员

X86 程序包 (SQLServer2005_XMO.msi) - 9529 KB
X64 包 (SQLServer2005_XMO_x64.msi) - 14963 KB
IA64 包 (SQLServer2005_XMO_ia64.msi) - 18372 KB

但是,如果您已经安装了 SQL Server 2008,则可能已经安装了等效的程序集。它们可以在 C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies 下找到。

我不确定 2008 和 2005 版本有多大不同,并且您可能希望确保不会为 2008 重新编译(如果它们适用于 2005),反之亦然(尽管 2008 SMO 对象应该让您管理 2005服务器实例)

You'd want to install the Management objects, which live in the XMO package:

The Management Objects Collection package includes several key elements of the SQL Server 2005 management API, including Analysis Management Objects (AMO), Replication Management Objects (RMO), and SQL Server Management Objects (SMO). Developers and DBAs can use these components to programmatically manage SQL Server 2005.

Note: Microsoft SQL Server 2005 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0 and Microsoft SQL Server Native Client, also available on this page.

Audience(s): Customer, Partner, Developer

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

But if you've already got SQL Server 2008 installed, you might have the equivalent assemblies already installed. They can be found under C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies.

I'm not sure how different the 2008 and 2005 versions are, and you probably want to ensure you don't recompile for 2008 if they're meant to be for 2005 or vice versa (although the 2008 SMO objects should let you manage 2005 server instances)

风吹雪碎 2024-10-19 15:48:08

添加对位于程序集的 Microsoft.SqlServer.SmoMicrosoft.SqlServer.ConnectionInfoMicrosoft.SqlServer.Management.Sdk.Sfc 的引用Sql 服务器安装目录中 sdk 文件夹内的文件夹示例:C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies

add a reference to Microsoft.SqlServer.Smo, Microsoft.SqlServer.ConnectionInfo and Microsoft.SqlServer.Management.Sdk.Sfc, located at assemblies folder inside of the sdk folder from your Sql server installation directory example: C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies

寒冷纷飞旳雪 2024-10-19 15:48:08

这个,在页面的末尾:

Microsoft SQL Server 2005 管理对象集合

管理对象集合包包含 SQL Server 2005 管理 API 的几个关键元素,其中包括分析管理对象 (AMO)、复制管理对象 (RMO) 和 SQL Server 管理对象 (SMO)。开发人员和 DBA 可以使用这些组件以编程方式管理 SQL Server 2005。

X86 软件包< /a> (SQLServer2005_XMO.msi) - 9529 KB


X64 软件包< /a> (SQLServer2005_XMO_x64.msi) - 14963 KB


IA64 包< /a> (SQLServer2005_XMO_ia64.msi) - 18372 KB


This one, towards the end of the page:

Microsoft SQL Server 2005 Management Objects Collection

The Management Objects Collection package includes several key elements of the SQL Server 2005 management API, including Analysis Management Objects (AMO), Replication Management Objects (RMO), and SQL Server Management Objects (SMO). Developers and DBAs can use these components to programmatically manage SQL Server 2005.

X86 Package (SQLServer2005_XMO.msi) - 9529 KB

X64 Package (SQLServer2005_XMO_x64.msi) - 14963 KB

IA64 Package (SQLServer2005_XMO_ia64.msi) - 18372 KB

同展鸳鸯锦 2024-10-19 15:48:08

在我的 Visualstudio2015 中

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

,它运行良好。

In my visualstudio2015

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

and it works fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文