C#命名空间用于SQL管理,用于sql服务器备份
我正在尝试使用 C# .NET 3.5/4.0 实用地运行 SQL Server 数据库的备份。我已经找到了如何完成此操作,但是我似乎找不到用于备份的命名空间库。
我正在寻找 Microsoft.SqlServer.Management 库,但我在任何地方都找不到这些库。我已经安装了 SQL Server 2005 Enterprise,所有工具示例和库似乎仍然没有出现在 Visual Studio(2010 版)中。
感谢任何输入,谢谢。
I am trying to pragmatically run a backup of an SQL Server database using C# .NET 3.5/4.0. I have found out how to accomplish this, however I can't seem to find the namespace libraries that are used for the backup.
I am looking for the Microsoft.SqlServer.Management libraries, I just can't find these anywhere. I have installed SQL Server 2005 Enterprise and all of the tools samples and the libraries still don't seem to appear in visual studio (version 2010)
Any input is appreciated, thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在以下位置找到它们:
(这是在我的 SQL 2008 64 位机器上。)
您需要以下全部三个程序集:
http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo(v= SQL.90).aspx
You will find them under:
(Thats on my 64-bit machine for SQL 2008.)
You need all three of the following assemblies:
http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo(v=SQL.90).aspx
SMO 等程序集位于
C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies
下(根据您的计算机和 SQL Server 版本的适当位数进行调整 - 我认为 2005 年将是 <代码>\90\ 而不是\100\
The Assemblies for SMO and the like exist under
C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies
(adjust for appropriate bitness of your machine and SQL Server version - I think 2005 would be\90\
rather than\100\