Microsoft.SqlServer.Management.Smo 命名空间 - 我需要安装什么来解决它?
我正在接听有关旧软件的支持电话。它具有以下导入:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您需要安装位于 XMO 包中的管理对象:
但是,如果您已经安装了 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:
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)
添加对位于程序集的
Microsoft.SqlServer.Smo
、Microsoft.SqlServer.ConnectionInfo
和Microsoft.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
andMicrosoft.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
这个,在页面的末尾:
This one, towards the end of the page:
在我的 Visualstudio2015 中
,它运行良好。
In my visualstudio2015
and it works fine.